Skip to content

Commit

Permalink
suppress some hypothesis health checks in test_get_beta_always...
Browse files Browse the repository at this point in the history
  • Loading branch information
Matias Graña committed Nov 22, 2023
1 parent 6eb606e commit 56dc6a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_predictors.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import datetime as dt
import importlib.util

from hypothesis import given
from hypothesis import given, settings
from hypothesis.strategies import datetimes, composite, floats
from hypothesis import HealthCheck
import pytest

from orbit_predictor.constants import R_E_KM
Expand Down Expand Up @@ -70,6 +71,7 @@ def test_get_normal_vector_zero_inclination_always_z_aligned(predictor, when_utc
assert normal_vector[2] == 1


@settings(deadline=None, suppress_health_check=(HealthCheck.function_scoped_fixture,))
@given(datetimes())
def test_get_beta_always_between_m_90_and_90(non_sun_synchronous, when_utc):
assert -90 <= non_sun_synchronous.get_beta(when_utc) <= 90
Expand Down

0 comments on commit 56dc6a5

Please sign in to comment.