Private
Public Access
1
0

alerts, analysis, api tested

This commit is contained in:
2024-04-21 10:56:37 +02:00
parent 85bd89d3d2
commit 409f4aff63
8 changed files with 124 additions and 117 deletions

View File

@@ -67,10 +67,11 @@ class OwnApi(TestCase):
self.assertEqual(response.status_code,200)
# response must be json
strokedata = json.loads(response.content)
df = pd.DataFrame(strokedata)
df = pl.from_dict(strokedata)
self.assertFalse(df.empty)
self.assertFalse(df.is_empty())
form_data = {
"distance": [23, 46, 48],
@@ -124,8 +125,8 @@ class OwnApi(TestCase):
# response must be json
strokedata = json.loads(response.content)
df = pd.DataFrame(strokedata)
self.assertFalse(df.empty)
df = pl.from_dicts(strokedata['data'])
self.assertFalse(df.is_empty())
form_data = {