Skip to content

Commit

Permalink
Add an API test for 10Cap buy price.
Browse files Browse the repository at this point in the history
  • Loading branch information
kocielnik authored and Patryk Kocielnik committed Sep 22, 2024
1 parent 4c5d4c5 commit af1fc80
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ def test_get_data():
data = res.text
assert json.loads(data)['debt_payoff_time'] == 0
assert res.status_code == 200

def test_get_ten_cap_price():
app = create_app(fetchDataForTickerSymbol)

with app.test_client() as test_client:
test_client = app.test_client()
res = test_client.get('/api/ticker/nvda')
assert res.json['ten_cap_buy_price'] == 127.43

0 comments on commit af1fc80

Please sign in to comment.