From f8c3ccd5cbb707b023488463f5c1dffe6f30809d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 30 Jan 2024 12:19:31 +0000 Subject: [PATCH] Apply updates from cookiecutter This automated commit applies the latest updates from our cookiecutters [1] to this repo. [1]: https://github.com/hypothesis/cookiecutters --- tests/pytest_plugins/factory_boy.py | 10 ---------- tox.ini | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 tests/pytest_plugins/factory_boy.py diff --git a/tests/pytest_plugins/factory_boy.py b/tests/pytest_plugins/factory_boy.py deleted file mode 100644 index 61eddff..0000000 --- a/tests/pytest_plugins/factory_boy.py +++ /dev/null @@ -1,10 +0,0 @@ -import factory.random -import pytest - - -@pytest.fixture(scope="session", autouse=True) -def factory_boy_random_seed(): - # Set factory_boy's random seed so that it produces the same random values - # in each run of the tests. - # See: https://factoryboy.readthedocs.io/en/latest/index.html#reproducible-random-values - factory.random.reseed_random("hypothesis/h-matchers") diff --git a/tox.ini b/tox.ini index 6c40ce8..f69eb34 100644 --- a/tox.ini +++ b/tox.ini @@ -19,7 +19,6 @@ setenv = dev: NEW_RELIC_APP_NAME = {env:NEW_RELIC_APP_NAME:h-matchers} dev: NEW_RELIC_ENVIRONMENT = {env:NEW_RELIC_ENVIRONMENT:dev} dev,tests,functests: PYTHONDEVMODE = {env:PYTHONDEVMODE:1} - tests,functests: PYTEST_PLUGINS = tests.pytest_plugins.factory_boy tests: COVERAGE_FILE = {env:COVERAGE_FILE:.coverage.{envname}} passenv = HOME @@ -37,6 +36,7 @@ deps = lint: pycodestyle lint,tests: pytest-mock lint,tests,functests: pytest + lint,tests,functests: h-testkit tests: pytest-cov coverage: coverage[toml] lint,tests,functests: factory-boy