Changeset View
Changeset View
Standalone View
Standalone View
swh/scheduler/pytest_plugin.py
Show All 18 Lines | |||||
# celery tasks for testing purpose; tasks themselves should be | # celery tasks for testing purpose; tasks themselves should be | ||||
# in swh/scheduler/tests/tasks.py | # in swh/scheduler/tests/tasks.py | ||||
TASK_NAMES = ["ping", "multiping", "add", "error", "echo"] | TASK_NAMES = ["ping", "multiping", "add", "error", "echo"] | ||||
postgresql_scheduler = postgresql_fact( | postgresql_scheduler = postgresql_fact( | ||||
"postgresql_proc", | "postgresql_proc", | ||||
db_name="scheduler", | dbname="scheduler", | ||||
dump_files=os.path.join(SQL_DIR, "*.sql"), | dump_files=os.path.join(SQL_DIR, "*.sql"), | ||||
no_truncate_tables={"dbversion", "priority_ratio"}, | no_truncate_tables={"dbversion", "priority_ratio"}, | ||||
) | ) | ||||
@pytest.fixture | @pytest.fixture | ||||
def swh_scheduler_config(request, postgresql_scheduler): | def swh_scheduler_config(request, postgresql_scheduler): | ||||
return { | return { | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |