Skip to content

Commit

Permalink
Test for level 3 fixes bug with 2 tests for level 2
Browse files Browse the repository at this point in the history
  • Loading branch information
brianboonstra committed Mar 11, 2018
1 parent c83d17b commit f1a505d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_public_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_get_product_order_book(self, client, level):
if level is 2 and (len(r['asks']) > 50 or len(r['bids']) > 50):
pytest.fail('Fail: Level 2 should only return the top 50 asks and bids')

if level is 2 and (len(r['asks']) < 50 or len(r['bids']) < 50):
if level is 3 and (len(r['asks']) < 50 or len(r['bids']) < 50):
pytest.fail('Fail: Level 3 should return the full order book')

def test_get_product_ticker(self, client):
Expand Down

0 comments on commit f1a505d

Please sign in to comment.