Skip to content

Commit

Permalink
Extract constant
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeNaccarato committed Jan 24, 2024
1 parent 2b28787 commit 45d3172
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/boilercv_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

from boilercv_tests import Case, normalize_cases

CASES_VAR = "CASES"
"""Module-level variable in test modules containing notebook cases for that module."""

# * -------------------------------------------------------------------------------- * #
# * Autouse

Expand Down Expand Up @@ -60,7 +63,7 @@ def _filter_certain_warnings():
@pytest.fixture(scope="module", autouse=True)
def _get_ns_attrs(request):
module = request.module
cases = getattr(module, "CASES", [])
cases = getattr(module, CASES_VAR, [])
notebook_namespace_tests = (
node
for node in request.node.collect()
Expand Down

0 comments on commit 45d3172

Please sign in to comment.