diff --git a/tests/test_db.py b/tests/test_db.py index f799c21f..0792d7d0 100644 --- a/tests/test_db.py +++ b/tests/test_db.py @@ -27,7 +27,8 @@ def tearDown(self): os.remove(self.dbfile) def test_get_session(self): - self.assertIn('autocommit', db.get_session().__dict__.keys()) + # Check a random session attribute to ensure we have a valid session + self.assertIn('autoflush', db.get_session().__dict__.keys()) def test_event_data(self): series = u'äöüßÄÖÜ'