Fix: GET party method

This commit is contained in:
2025-01-11 13:52:50 -05:00
parent ad90f666d1
commit 00c7052838
2 changed files with 5 additions and 11 deletions

View File

@@ -54,8 +54,11 @@ class DonConfiaoApiRouteTestCase(
'Authorization': f'bearer {self.key}',
})
party, = json.loads(
response.get_data().decode())
self.assertEqual(response.status_code, HTTPStatus.OK)
self.assertIsNotNone(response.get_data())
self.assertEqual(party['name'], 'Dunkan')
def test_post_parties(self):
client = self.client()