P5-3247 add price calculations for poster inquiries

This commit is contained in:
Martin
2019-05-14 09:25:30 +02:00
parent 2d9ace0b9b
commit 35a7c3798d
5 changed files with 48 additions and 1 deletions
+6
View File
@@ -195,3 +195,9 @@ class TestEndpoints(flask_testing.TestCase):
response = self.client.get('/prices/inquiry/1?width=100&height=100')
self.assert200(response)
self.assertEqual('canvas', response.json['group'])
def test_inquiry_poster(self):
self._add_inquiry(territory='SE', product_group='poster')
response = self.client.get('/prices/inquiry/1?width=100&height=100')
self.assert200(response)
self.assertEqual('poster', response.json['group'])