Changeset 2f705ac in rattail


Ignore:
Timestamp:
06/16/20 17:17:55 (2 months ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
14d3c74
Parents:
d4ce917
Message:

Use OrderedDict? in some importer tests, for consistency

otherwise python2 can bite us sometimes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail/tests/importing/test_handlers.py

    rd4ce917 r2f705ac  
    1 # -*- coding: utf-8 -*-
     1# -*- coding: utf-8; -*-
    22
    33from __future__ import unicode_literals, absolute_import
     
    1313from rattail.importing import handlers, Importer
    1414from rattail.config import RattailConfig
     15from rattail.util import OrderedDict
    1516from rattail.tests import RattailTestCase
    1617from rattail.tests.importing import ImporterTester
     
    358359class TestImportHandlerImportData(ImporterTester, unittest.TestCase):
    359360
    360     sample_data = {
    361         '16oz': {'upc': '00074305001161', 'description': "Apple Cider Vinegar 16oz"},
    362         '32oz': {'upc': '00074305001321', 'description': "Apple Cider Vinegar 32oz"},
    363         '1gal': {'upc': '00074305011283', 'description': "Apple Cider Vinegar 1gal"},
    364     }
     361    sample_data = OrderedDict([
     362        ('16oz', {'upc': '00074305001161', 'description': "Apple Cider Vinegar 16oz"}),
     363        ('32oz', {'upc': '00074305001321', 'description': "Apple Cider Vinegar 32oz"}),
     364        ('1gal', {'upc': '00074305011283', 'description': "Apple Cider Vinegar 1gal"}),
     365    ])
    365366
    366367    def setUp(self):
Note: See TracChangeset for help on using the changeset viewer.