Feat: Se agrega GET party

This commit is contained in:
2025-01-11 12:59:34 -05:00
parent cd1450e11b
commit ad90f666d1
2 changed files with 37 additions and 0 deletions

View File

@@ -46,6 +46,17 @@ class DonConfiaoApiRouteTestCase(
self.assertEqual(response.status_code, HTTPStatus.OK)
self.assertEqual(len(parties), 1)
def test_get_party(self):
client = self.client()
response = client.get(
f'/{self.db_name}/sale_don_confiao/party/1',
headers={
'Authorization': f'bearer {self.key}',
})
self.assertEqual(response.status_code, HTTPStatus.OK)
self.assertIsNotNone(response.get_data())
def test_post_parties(self):
client = self.client()
response = client.post(