-
In our unit tests, we sometimes use freezegun to make
I tried patching |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I've also been hit with this issue. What was the change that caused this error to crop up? |
Beta Was this translation helpful? Give feedback.
-
Happy to hear that it worked out for you :)
…On Fri, May 3, 2024 at 10:58 AM Adam Nalisnick ***@***.***> wrote:
@zachaysan <https://github.com/zachaysan> I think this solves it. We are
using dataclasses and TypeAdapters, but if I create the TypeAdapter before
freezing time things are working! Thank you!
—
Reply to this email directly, view it on GitHub
<#9343 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABWL674Z6IFFQZM36ULQQDZAOQYZAVCNFSM6AAAAABG6UKFXOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TGMBWG42DA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Thanks for letting me know @theadam. We were able to work around this issue which you can see here:
Flagsmith/flagsmith#3876
It basically loads the model up before FreezeGun gets involved.