Changeset - 8ecec5a9adaa
[Not reviewed]
0 1 0
Lance Edgar - 8 years ago 2016-06-01 22:22:18
ledgar@sacfoodcoop.com
Fix broken test
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rattail/tests/importing/test_sqlalchemy.py
Show inline comments
 
@@ -141,13 +141,13 @@ class TestToSQLAlchemy(TestCase):
 
            self.assertIsInstance(cached['data'], dict)
 
            self.assertEqual(cached['data']['id'], i)
 
            self.assertEqual(cached['data']['description'], WIDGETS[i-1]['description'])
 

	
 
    # TODO: lame
 
    def test_flush_session(self):
 
        importer = self.make_importer(fields=['id'], session=self.session, flush_session=True)
 
        importer = self.make_importer(fields=['id'], key='id', session=self.session, flush_session=True)
 
        widget = Widget()
 
        widget.id = 1
 
        widget, original = importer.update_object(widget, {'id': 1}), widget
 
        self.assertIs(widget, original)
 

	
 
    def test_flush_create_update(self):
0 comments (0 inline, 0 general)