From 85c9addfa1febf2435cf71f3428560bddb2da9c9 Mon Sep 17 00:00:00 2001 From: Patryk Kocielnik Date: Fri, 6 Dec 2024 10:53:34 +0100 Subject: [PATCH] Make the test test the *API*, not NVDA:) Actually, the purpose of this commit is to bump the CI to run again, because it failed with an error that seems intermittent, and very rare. --- tests/test_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_api.py b/tests/test_api.py index 4e7520c..36b289f 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -20,7 +20,7 @@ def test_get_data(): test_client = app.test_client() res = test_client.get('/api/ticker/nvda') data = res.text - assert json.loads(data)['debt_payoff_time'] == 0 + assert json.loads(data)['debt_payoff_time'] >= 0 assert res.status_code == 200 def test_get_ten_cap_price():