reactive-python / reactpy

It's React, but in Python
https://reactpy.dev
MIT License
7.82k stars 317 forks source link

BackendFixture fails with Sanic because missing `test_mode` #861

Closed rmorshea closed 1 year ago

rmorshea commented 1 year ago

Discussed in https://github.com/idom-team/idom/discussions/860

Originally posted by **ahopkins** December 29, 2022 The problem was reported here: https://github.com/sanic-org/sanic/issues/2643. The issue is that the `BackendFixture` for testing Sanic does not set `Sanic.test_mode = True`, which means that there is potential for issues (as seen the linked issue) to arise. I propose that you add this into your test implementation for Sanic to automatically manage setting that variable.
rmorshea commented 1 year ago

I think this was fixed by: https://github.com/idom-team/idom/pull/862