Changeset d4ce917 in rattail


Ignore:
Timestamp:
06/16/20 17:10:42 (2 months ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
2f705ac
Parents:
4b03957
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_importers.py

    r4b03957 rd4ce917  
    1010from rattail.db.util import QuerySequence
    1111from rattail.importing import importers
     12from rattail.util import OrderedDict
    1213from rattail.tests import NullProgress, RattailTestCase
    1314from rattail.tests.importing import ImporterTester
     
    361362    importer_class = MockImporter
    362363
    363     sample_data = {
    364         '16oz': {'upc': '00074305001161', 'description': "Apple Cider Vinegar 16oz"},
    365         '32oz': {'upc': '00074305001321', 'description': "Apple Cider Vinegar 32oz"},
    366         '1gal': {'upc': '00074305011283', 'description': "Apple Cider Vinegar 1gal"},
    367     }
     364    sample_data = OrderedDict([
     365        ('16oz', {'upc': '00074305001161', 'description': "Apple Cider Vinegar 16oz"}),
     366        ('32oz', {'upc': '00074305001321', 'description': "Apple Cider Vinegar 32oz"}),
     367        ('1gal', {'upc': '00074305011283', 'description': "Apple Cider Vinegar 1gal"}),
     368    ])
    368369
    369370    def setUp(self):
Note: See TracChangeset for help on using the changeset viewer.