Skip to content

Commit

Permalink
Simplify tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
kocielnik committed Dec 19, 2024
1 parent 5766efe commit 4f1e990
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_get_data():
res = test_client.get('/api/ticker/nvda')
assert res.status_code == 200

data = json.loads(res.text)
data = res.json
assert data['debt_payoff_time'] >= 0
assert data['sticker_price'] > 0.0
assert data['payback_time'] > 1
Expand All @@ -44,4 +44,4 @@ def test_ten_cap_price_has_two_places_precision():

price = res.json['ten_cap_price']

assert round(price, 2) == price
assert round(price, 2) == price

0 comments on commit 4f1e990

Please sign in to comment.