Skip to content

Commit

Permalink
Fix broken import in test module
Browse files Browse the repository at this point in the history
  • Loading branch information
chanhosuh committed Aug 7, 2023
1 parent f49ff10 commit bf16d83
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/unit/test_param_samplers.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
import pytest

from math import prod

from hypothesis import given, settings, HealthCheck
import pytest
from hypothesis import HealthCheck, given, settings
from hypothesis import strategies as st

from curvesim.exceptions import ParameterSamplerError
from curvesim.iterators.param_samplers import ParameterizedPoolIterator
from curvesim.iterators.param_samplers.parameterized_pool_iterator import (
DEFAULT_POOL_MAP,
)
from curvesim.pool.cryptoswap.pool import _newton_D
from curvesim.pool.cryptoswap.calcs import newton_D
from curvesim.pool.sim_interface import SimCurveCryptoPool


# Strategies
POOL_PARAMS = {
"A": st.integers(min_value=1, max_value=3000),
Expand Down Expand Up @@ -315,7 +313,7 @@ def _test_pool_params(pool, params):

if _key == "D":
if isinstance(pool, SimCurveCryptoPool):
D_from_xp = _newton_D(_pool.A, _pool.gamma, _pool._xp())
D_from_xp = newton_D(_pool.A, _pool.gamma, _pool._xp())
assert _pool.D == val
assert (
abs(D_from_xp - val) <= 10**10
Expand Down

0 comments on commit bf16d83

Please sign in to comment.