3
0
Fork 0

feat: remove version cap for SQLAlchemy (allow 1.x or 2.x)

hoping this does not break things terribly, but it needs to be done
regardless so will just have to pick up pieces if so
This commit is contained in:
Lance Edgar 2025-06-29 19:38:29 -05:00
parent 706ea80926
commit 650dc8ff4d
5 changed files with 24 additions and 7 deletions

View file

@ -51,8 +51,7 @@ else:
# using sqlite backend.
# using postgres as backend, should use "sequence"
with patch.object(self.session.bind.url, 'get_dialect') as get_dialect:
get_dialect.return_value.name = 'postgresql'
with patch.object(handler, 'get_dialect', return_value='postgresql'):
with patch.object(self.session, 'execute') as execute:
execute.return_value.scalar.return_value = 1
value = handler.next_counter_value(self.session, 'testing')