-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update test queries according to sqlalchemy 2.x
Signed-off-by: Ahmad Wahid <[email protected]>
- Loading branch information
1 parent
c8e7d3b
commit cd0ee37
Showing
3 changed files
with
51 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
from sqlalchemy import select | ||
|
||
from timely_beliefs import DBSensor | ||
from timely_beliefs.tests import session | ||
|
||
|
||
def test_persist_sensor(db): | ||
assert session.query(DBSensor).first() | ||
assert session.scalar(select(DBSensor).limit(1)) |