diff --git a/conftest.py b/conftest.py deleted file mode 100644 --- a/conftest.py +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (C) 2019 The Software Heritage developers -# See the AUTHORS file at the top-level directory of this distribution -# License: GNU General Public License version 3, or any later version -# See top-level LICENSE file for more information - -from hypothesis import settings - - -# define tests profile. Full documentation is at: -# https://hypothesis.readthedocs.io/en/latest/settings.html#settings-profiles -settings.register_profile("fast", max_examples=5, deadline=5000) -settings.register_profile("slow", max_examples=20, deadline=5000) diff --git a/swh/storage/tests/conftest.py b/swh/storage/tests/conftest.py --- a/swh/storage/tests/conftest.py +++ b/swh/storage/tests/conftest.py @@ -10,7 +10,7 @@ from pytest_postgresql.janitor import DatabaseJanitor, psycopg2 from os import path, environ -from hypothesis import strategies +from hypothesis import settings, strategies from typing import Dict import swh.storage @@ -25,6 +25,11 @@ DUMP_FILES = path.join(SQL_DIR, '*.sql') +# define tests profile. Full documentation is at: +# https://hypothesis.readthedocs.io/en/latest/settings.html#settings-profiles +settings.register_profile("fast", max_examples=5, deadline=5000) +settings.register_profile("slow", max_examples=20, deadline=5000) + @pytest.fixture def swh_storage(postgresql_proc, swh_storage_postgresql):