We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
use_location
1 parent f81c168 commit 5a5d8d0Copy full SHA for 5a5d8d0
src/py/reactpy/tests/test_backend/test_all.py
@@ -107,17 +107,13 @@ def ShowScope():
107
assert isinstance(scope.current, MutableMapping)
108
109
110
-@pytest.mark.skipIf(
111
- sys.platform == "darwin",
112
- reason="Tornado and Flask backends are currently buggy on MacOS.",
113
-)
114
async def test_use_location(display: DisplayFixture):
115
location = reactpy.Ref()
116
117
@poll
118
async def poll_location():
119
"""This needs to be async to allow the server to respond"""
120
- return location.current
+ return getattr(location, "current", None)
121
122
@reactpy.component
123
def ShowRoute():
0 commit comments