Skip to content

Commit

Permalink
fix: SQLAlchemy 2.0 deprecation warning on Session.query.get
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Jan 4, 2024
1 parent 0e245cc commit f949547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def test_multiple_values_without_query_factory(self):
self.assertFalse(form.validate())

def test_single_default_value(self):
first_test = self.sess.query(self.Test).get(2)
first_test = self.sess.get(self.Test, 2)

class F(Form):
a = QuerySelectMultipleField(
Expand Down

0 comments on commit f949547

Please sign in to comment.