Changeset - d4ce9177ea54
[Not reviewed]
0 1 0
Lance Edgar (lance) - 4 years ago 2020-06-16 17:10:42
lance@edbob.org
Use OrderedDict in some importer tests, for consistency

otherwise python2 can bite us sometimes
1 file changed with 6 insertions and 5 deletions:
0 comments (0 inline, 0 general)
rattail/tests/importing/test_importers.py
Show inline comments
 
@@ -9,6 +9,7 @@ from mock import Mock, patch, call
 
from rattail.db import model
 
from rattail.db.util import QuerySequence
 
from rattail.importing import importers
 
from rattail.util import OrderedDict
 
from rattail.tests import NullProgress, RattailTestCase
 
from rattail.tests.importing import ImporterTester
 

	
 
@@ -360,11 +361,11 @@ class MockImporter(importers.Importer):
 
class TestMockImporter(ImporterTester, TestCase):
 
    importer_class = MockImporter
 

	
 
    sample_data = {
 
        '16oz': {'upc': '00074305001161', 'description': "Apple Cider Vinegar 16oz"},
 
        '32oz': {'upc': '00074305001321', 'description': "Apple Cider Vinegar 32oz"},
 
        '1gal': {'upc': '00074305011283', 'description': "Apple Cider Vinegar 1gal"},
 
    }
 
    sample_data = OrderedDict([
 
        ('16oz', {'upc': '00074305001161', 'description': "Apple Cider Vinegar 16oz"}),
 
        ('32oz', {'upc': '00074305001321', 'description': "Apple Cider Vinegar 32oz"}),
 
        ('1gal', {'upc': '00074305011283', 'description': "Apple Cider Vinegar 1gal"}),
 
    ])
 

	
 
    def setUp(self):
 
        self.importer = self.make_importer()
0 comments (0 inline, 0 general)