#69 feat(ReconciliationJar): accept post creation.
This commit is contained in:
		| @@ -112,6 +112,22 @@ class TestJarReconcliation(TestCase): | ||||
|             reconciliation.clean() | ||||
|             reconciliation.save() | ||||
|  | ||||
|     def test_create_reconciliation_with_purchases(self): | ||||
|         url = '/don_confiao/reconciliation_jar/create' | ||||
|         data = { | ||||
|             'date_time': '2024-12-02T21:07', | ||||
|             'cashman': 'carlos', | ||||
|             'total_cash_purchases': 45000, | ||||
|             'cash_taken': 44000, | ||||
|             'cash_discrepancy': 1000, | ||||
|         } | ||||
|         response = self.client.post(url, data, format='json') | ||||
|         rawContent = response.content.decode('utf-8') | ||||
|         content = json.loads(rawContent) | ||||
|  | ||||
|         self.assertEqual(response.status_code, 200) | ||||
|         self.assertIn('id', content) | ||||
|  | ||||
|     def _create_simple_reconciliation(self): | ||||
|         reconciliation = ReconciliationJar() | ||||
|         reconciliation.date_time = "2024-07-30" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user