mirror of
https://github.com/quay/quay.git
synced 2026-01-26 06:21:37 +03:00
* chore: drop deprecated tables and remove unused code * isort imports * migration: check for table existence before drop
14 lines
431 B
Python
14 lines
431 B
Python
from test.fixtures import *
|
|
|
|
from data import database, model
|
|
from workers.repositoryactioncounter import RepositoryActionCountWorker
|
|
|
|
|
|
def test_repositoryactioncount(app):
|
|
database.RepositoryActionCount.delete().execute()
|
|
database.RepositorySearchScore.delete().execute()
|
|
|
|
rac = RepositoryActionCountWorker()
|
|
for repository in database.Repository.select():
|
|
assert rac._count_repository_actions(repository)
|