From 81bbd4ac0f7786871e06de43de08e519a79c2108 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Sun, 20 Oct 2024 02:12:11 +0200 Subject: [PATCH] Make smoke tests not do cross checking Some unit tests also contain integration-like tests that should not be run when smoke testing --- noxfile.py | 1 + tests/elements/test_galois.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index efb7135..6727413 100644 --- a/noxfile.py +++ b/noxfile.py @@ -357,6 +357,7 @@ def test_fast(session: nox.Session) -> None: """ # See implementation notes in `pre_commit_test_hook()` below session.env["_smoke_tests_only"] = "true" + session.env["NO_CROSS_REFERENCE"] = "true" test(session) diff --git a/tests/elements/test_galois.py b/tests/elements/test_galois.py index 3c42f16..bdb1e40 100644 --- a/tests/elements/test_galois.py +++ b/tests/elements/test_galois.py @@ -349,7 +349,6 @@ class TestNumericBehavior: """`one` and `zero` behave like `True` and `False`.""" assert (bool(one), bool(zero)) == (True, False) - @pytest.mark.overlapping_test @pytest.mark.parametrize("obj", [one, zero]) def test_get_abs_value(self, obj): """`abs(one)` and `abs(zero)` are `one` and `zero`."""