Replies: 1 comment
-
From what I can see, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
Hello, I noticed that on python3.12 the following tests fail:
test_backend_pre_start.py
andtest_test_pre_start.py
with the error:
Operating System
Linux
Operating System Details
using base python:3.12 image
Python Version
Python 3.12.3
Additional Context
It seems to happens with the mock behaving differently and not mocking the
sqlmodel.Session module
, I am not sure yet if the mock lib has been bump, but so far I could not see anything mention of any relevant changes in either python or mock releases, also there is a lot of change, I might have miss some.I noticed that the package
sqlmodel.Session
was not been mock so I tried using fromapp.core.model.Session
, the mock then worked but the call is being done in__enter__
due to thewith
statement and theselect(1)
param doesnt match due to not being the same reference.Beta Was this translation helpful? Give feedback.
All reactions