Make smoke tests not do cross checking

Some unit tests also contain integration-like tests
that should not be run when smoke testing
This commit is contained in:
Alexander Hess 2024-10-20 02:12:11 +02:00
parent bfbbbd01e4
commit 81bbd4ac0f
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
2 changed files with 1 additions and 1 deletions

View file

@ -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)

View file

@ -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`."""