Phase 1 of migrating APPR-specific tables to tables with the Appr
prefix
Fixes https://jira.coreos.com/browse/QUAY-950
This commit is contained in:
parent
6622f27c93
commit
113bb96f29
28 changed files with 699 additions and 176 deletions
|
@ -2,6 +2,7 @@ import pytest
|
|||
|
||||
from playhouse.test_utils import assert_query_count
|
||||
|
||||
from data import model, database
|
||||
from endpoints.api.search import ConductRepositorySearch, ConductSearch
|
||||
from endpoints.api.test.shared import conduct_api_call
|
||||
from endpoints.test.shared import client_with_identity
|
||||
|
@ -14,6 +15,10 @@ from test.fixtures import *
|
|||
('repository'),
|
||||
])
|
||||
def test_repository_search(query, client):
|
||||
# Prime the caches.
|
||||
database.Repository.kind.get_id('image')
|
||||
database.Repository.kind.get_name(1)
|
||||
|
||||
with client_with_identity('devtable', client) as cl:
|
||||
params = {'query': query}
|
||||
with assert_query_count(7):
|
||||
|
|
Reference in a new issue