adding food logging, phase 6
This commit is contained in:
@@ -32,6 +32,8 @@ class OpenFoodFactsTests(TestCase):
|
||||
self.assertEqual(mapped['serving_amount'], Decimal('300.000'))
|
||||
self.assertEqual(mapped['energy_kcal_100'], Decimal('58.000'))
|
||||
self.assertIsNone(mapped['fat_100'])
|
||||
unsafe = dict(SAMPLE, image_front_url='https://example.com/track.png')
|
||||
self.assertEqual(map_product(unsafe)['image_url'], '')
|
||||
|
||||
@patch.object(OpenFoodFactsClient, 'get_product')
|
||||
def test_fresh_cached_barcode_avoids_http(self, get_product):
|
||||
|
||||
Reference in New Issue
Block a user