Skip to content

Commit

Permalink
chore: moved imports to top of the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoCentonze committed Apr 26, 2024
1 parent 550c31f commit c7c1035
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions tests/unitary/pool/stateful/test_multiprecision.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pytest
from boa.test import strategy
from hypothesis import HealthCheck, settings
from hypothesis.stateful import rule, run_state_machine_as_test

from tests.unitary.pool.stateful.test_stateful import NumbaGoUp
Expand Down Expand Up @@ -38,9 +39,6 @@ def exchange(self, exchange_amount_in, exchange_i, user):


def test_multiprecision(users, coins, swap):
from hypothesis import settings
from hypothesis._settings import HealthCheck

Multiprecision.TestCase.settings = settings(
max_examples=MAX_SAMPLES,
stateful_step_count=STEP_COUNT,
Expand Down
4 changes: 1 addition & 3 deletions tests/unitary/pool/stateful/test_simulate.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import boa
from boa.test import strategy
from hypothesis import HealthCheck, settings
from hypothesis.stateful import invariant, rule, run_state_machine_as_test

from tests.unitary.pool.stateful.stateful_base import StatefulBase
Expand Down Expand Up @@ -102,9 +103,6 @@ def simulator(self):


def test_sim(users, coins, swap):
from hypothesis import settings
from hypothesis._settings import HealthCheck

StatefulSimulation.TestCase.settings = settings(
max_examples=MAX_SAMPLES,
stateful_step_count=STEP_COUNT,
Expand Down

0 comments on commit c7c1035

Please sign in to comment.