#84 refactor(SaleSummary): rename saleline_set to lines at serializer.
This commit is contained in:
		| @@ -41,11 +41,13 @@ class TestSummaryViewPurchase(TestCase): | ||||
|     def test_json_summary(self): | ||||
|         url = f"/don_confiao/resumen_compra_json/{self.purchase.id}" | ||||
|         response = self.client.get(url) | ||||
|         content = response.content.decode('utf-8') | ||||
|         self.assertEqual(response.status_code, 200) | ||||
|         self.assertIn('Alejo Mono', response.content.decode('utf-8')) | ||||
|         self.assertIn('cafe', response.content.decode('utf-8')) | ||||
|         self.assertIn('72500', response.content.decode('utf-8')) | ||||
|         self.assertIn('quantity', response.content.decode('utf-8')) | ||||
|         self.assertIn('11', response.content.decode('utf-8')) | ||||
|         self.assertIn('date', response.content.decode('utf-8')) | ||||
|         self.assertIn(self.purchase.date, response.content.decode('utf-8')) | ||||
|         self.assertIn('Alejo Mono', content) | ||||
|         self.assertIn('cafe', content) | ||||
|         self.assertIn('72500', content) | ||||
|         self.assertIn('quantity', content) | ||||
|         self.assertIn('11', content) | ||||
|         self.assertIn('date', content) | ||||
|         self.assertIn(self.purchase.date, content) | ||||
|         self.assertIn('lines', content) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user