From 14d2771aa925370c09b06aa59e7f477b253fee6b Mon Sep 17 00:00:00 2001 From: zacharyburnett Date: Wed, 11 Dec 2024 09:05:52 -0500 Subject: [PATCH 1/2] remove `pytest_crds` plugin --- pyproject.toml | 3 --- pytest_crds/__init__.py | 0 pytest_crds/plugin.py | 13 ------------- 3 files changed, 16 deletions(-) delete mode 100644 pytest_crds/__init__.py delete mode 100644 pytest_crds/plugin.py diff --git a/pyproject.toml b/pyproject.toml index ef138c0999..9674377d64 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,9 +87,6 @@ world_coords = "jwst.scripts.world_coords:main" [project.entry-points."stpipe.steps"] jwst = "jwst.stpipe.integration:get_steps" -[project.entry-points.pytest11] -report_crds_context = "pytest_crds.plugin" - [project.optional-dependencies] docs = [ "matplotlib", diff --git a/pytest_crds/__init__.py b/pytest_crds/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/pytest_crds/plugin.py b/pytest_crds/plugin.py deleted file mode 100644 index c582300362..0000000000 --- a/pytest_crds/plugin.py +++ /dev/null @@ -1,13 +0,0 @@ -def pytest_addoption(parser): - parser.addoption("--report-crds-context", action="store_true", - help="Report CRDS context in test suite header") - - -def pytest_report_header(config): - """Add CRDS_CONTEXT to pytest report header""" - - if config.getoption("report_crds_context"): - from stpipe.crds_client import get_context_used - return f"crds_context: {get_context_used('jwst')}" - else: - return [] From ab4eba41d63c7197730865b754bcfedb0cad8642 Mon Sep 17 00:00:00 2001 From: zacharyburnett Date: Wed, 11 Dec 2024 14:07:35 -0500 Subject: [PATCH 2/2] remove `--report-crds-context` from default `pytest` arguments --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9674377d64..4d2be40705 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -203,7 +203,6 @@ doctest_rst = "enabled" addopts = [ "-p no:legacypath", "--show-capture=no", - "--report-crds-context", "--color=yes", ] filterwarnings = [