Skip to content

Commit

Permalink
Explicitly suppress hypothesis function_scoped_fixture health check
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusBC59 committed Jan 15, 2021
1 parent f4cba2f commit dfaa374
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/test_awgfilegeneration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# that a valid .awg file is actually generated

import pytest
from hypothesis import given, settings
from hypothesis import HealthCheck, given, settings
import hypothesis.strategies as hst

import broadbean as bb
Expand Down Expand Up @@ -86,7 +86,7 @@ def should_raise_sequencingerror(wait, nrep, jump_to, goto, num_elms):
return False


@settings(max_examples=25)
@settings(max_examples=25, suppress_health_check=(HealthCheck.function_scoped_fixture,))
@given(wait=hst.integers(), nrep=hst.integers(), jump_to=hst.integers(),
goto=hst.integers())
def test_awg_output_validations(protosequence1, wait, nrep, jump_to, goto):
Expand Down
6 changes: 3 additions & 3 deletions tests/test_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import broadbean as bb
import numpy as np
from broadbean.element import ElementDurationError, Element
from hypothesis import given, settings
from hypothesis import HealthCheck, given, settings
import hypothesis.strategies as hst
import os

Expand Down Expand Up @@ -118,7 +118,7 @@ def test_addArray():
elem.addArray(2, wfm, SR, m2=m2[3:])


@settings(max_examples=25)
@settings(max_examples=25, suppress_health_check=(HealthCheck.function_scoped_fixture,))
@given(SR1=hst.integers(min_value=1,max_value=25e8), SR2=hst.integers(min_value = 1,max_value = 25e8),
N=hst.integers(min_value=2,max_value=25e6), M=hst.integers(min_value=2,max_value=25e6))
def test_invalid_durations(SR1, SR2, N, M):
Expand Down Expand Up @@ -207,7 +207,7 @@ def test_input_fail1(improper_bp):
# Properties


@settings(max_examples=25)
@settings(max_examples=25, suppress_health_check=(HealthCheck.function_scoped_fixture,))
@given(SR=hst.integers(min_value=1,max_value=25e8), N=hst.integers(min_value=2,max_value=25e6))
def test_points(SR, N):
elem = Element()
Expand Down

0 comments on commit dfaa374

Please sign in to comment.