Skip to content

Commit

Permalink
Fix Session Test
Browse files Browse the repository at this point in the history
The test was probing for a valid session by checking a random attribute.
This attribute has been removed with SQLAlchemy 2.
  • Loading branch information
lkiesow committed Aug 14, 2023
1 parent 1c0cc72 commit 4252f74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'äöüßÄÖÜ'
Expand Down

0 comments on commit 4252f74

Please sign in to comment.