Skip to content

Commit 32fe03a

Browse files
committed
Table selection in 'sqlalchemy' is done using 'scalar_one()', not 'one()'
1 parent 20ccaaa commit 32fe03a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/server/test_ispyb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_get_session_id(
2020
.where(Proposal.proposalNumber == str(ExampleVisit.proposal_number))
2121
.where(BLSession.visit_number == ExampleVisit.visit_number)
2222
)
23-
.one()
23+
.scalar_one()
2424
.sessionId
2525
)
2626

0 commit comments

Comments
 (0)