This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/workers/test/test_repositoryactioncounter.py
Joseph Schorr 80693d6b8c Fix NPE bug in RAC worker
We need to return `None`, not `0` if there are no additional repositories to measure
2017-04-11 15:42:11 -04:00

13 lines
426 B
Python

from data import model, database
from test.fixtures import app, appconfig, database_uri, init_db_path, sqlitedb_file
from workers.repositoryactioncounter import RepositoryActionCountWorker
def test_repositoryactioncount(app):
database.RepositoryActionCount.delete().execute()
database.RepositorySearchScore.delete().execute()
rac = RepositoryActionCountWorker()
while rac._count_repository_actions():
continue