Skip to content

Commit

Permalink
Merge remote-tracking branch 'vvk/fix-test_maintain_strategy_one_side…
Browse files Browse the repository at this point in the history
…d' into pr-721-merge
  • Loading branch information
joelvai committed Mar 20, 2020
2 parents b1c8208 + 1c9ea71 commit 1c48ee4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ def test_maintain_strategy_basic(mode, worker, do_initial_allocation):
assert worker.sell_orders[-1]['price'] ** -1 > worker.upper_bound / (1 + worker.increment * 2)


@pytest.mark.xfail(reason='https://github.com/Codaone/DEXBot/issues/575')
@pytest.mark.parametrize('mode', MODES)
def test_maintain_strategy_one_sided(mode, base_worker, config_only_base, do_initial_allocation):
""" Test for one-sided start (buy only)
Expand All @@ -102,7 +101,7 @@ def test_maintain_strategy_one_sided(mode, base_worker, config_only_base, do_ini
do_initial_allocation(worker, mode)

# Check target spread is reached
assert worker.actual_spread < worker.target_spread + worker.increment
assert worker.actual_spread == pytest.approx(worker.target_spread + worker.increment, abs=(worker.increment / 2))

# Check number of orders
price = worker.center_price / math.sqrt(1 + worker.target_spread)
Expand Down

0 comments on commit 1c48ee4

Please sign in to comment.