Switch fixture imports to wildcard in prep for full db test fixes

This commit is contained in:
Joseph Schorr 2017-04-24 13:49:29 -04:00
parent efcb903e48
commit 7debd44b54
23 changed files with 41 additions and 32 deletions

View file

@ -5,7 +5,7 @@ import pytest
from data.database import RepositoryActionCount, RepositorySearchScore
from data.model.repository import create_repository
from data.model.repositoryactioncount import update_repository_score, SEARCH_BUCKETS
from test.fixtures import database_uri, init_db_path, sqlitedb_file
from test.fixtures import *
@pytest.mark.parametrize('bucket_sums,expected_score', [
((0, 0, 0, 0), 0),
@ -20,7 +20,7 @@ from test.fixtures import database_uri, init_db_path, sqlitedb_file
((300, 500, 1000, 0), 1733),
((5000, 0, 0, 0), 5434),
])
def test_update_repository_score(bucket_sums, expected_score, database_uri):
def test_update_repository_score(bucket_sums, expected_score, initialized_db):
# Create a new repository.
repo = create_repository('devtable', 'somenewrepo', None, repo_kind='image')