diff --git a/noxfile.py b/noxfile.py index 40b0d420..f1db1c8c 100644 --- a/noxfile.py +++ b/noxfile.py @@ -31,6 +31,7 @@ def tests(session: nox.Session) -> None: *session.posargs, ) + @nox.session(name="test-min-deps", python="3.9", venv_backend="uv") def test_min_deps(session: nox.Session) -> None: """Run the unit tests using the lowest compatible version of all direct dependencies.""" @@ -43,7 +44,6 @@ def test_min_deps(session: nox.Session) -> None: ) - @nox.session(name="integration-tests") def integration_tests(session: nox.Session) -> None: """Run the integration tests.""" diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index 17458dfc..7663c480 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -34,14 +34,13 @@ def pytest_sessionfinish(session, exitstatus): # want to defer to original pytest behavior. return - failure_rate = (100.0 * session.testsfailed) / session.testscollected if failure_rate <= ACCEPTABLE_FAILURE_RATE: - status_code = os.environ.get('EARTHACCESS_ALLOWABLE_FAILURE_STATUS_CODE', 99) + status_code = os.environ.get("EARTHACCESS_ALLOWABLE_FAILURE_STATUS_CODE", 99) warn( - f'\nWARNING: The integration test suite has returned {status_code} because the ' - 'failure rate was less than a hardcoded threshold. For more details see:\n' - 'tests/integration/conftest.py.' + f"\nWARNING: The integration test suite has returned {status_code} because the " + "failure rate was less than a hardcoded threshold. For more details see:\n" + "tests/integration/conftest.py." ) session.exitstatus = status_code