alerts, analysis, api tested
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user