Skip to content

Commit 02841d7

Browse files
committed
fix the mocks
1 parent 25b0493 commit 02841d7

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

reflex/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
get_hydrate_event,
6262
noop,
6363
)
64+
from reflex_core.utils import console
6465
from reflex_core.utils.imports import ImportVar
6566
from reflex_core.utils.types import ASGIApp, Message, Receive, Scope, Send
6667
from rich.progress import MofNCompleteColumn, Progress, TimeElapsedColumn
@@ -106,7 +107,6 @@
106107
)
107108
from reflex.utils import (
108109
codespaces,
109-
console,
110110
exceptions,
111111
format,
112112
frontend_skeleton,

tests/units/test_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1979,7 +1979,7 @@ async def test_state_manager_lock_warning_threshold_contend(
19791979
substate_token_redis: A token + substate name for looking up in state manager.
19801980
mocker: Pytest mocker object.
19811981
"""
1982-
console_warn = mocker.patch("reflex.utils.console.warn")
1982+
console_warn = mocker.patch("reflex_core.utils.console.warn")
19831983

19841984
state_manager_redis.lock_expiration = LOCK_EXPIRATION
19851985
state_manager_redis.lock_warning_threshold = LOCK_WARNING_THRESHOLD

tests/units/test_testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def harness_mocks(monkeypatch):
6969
)
7070
)
7171

72-
monkeypatch.setattr(reflex_testing, "get_config", lambda: fake_config)
72+
monkeypatch.setattr(reflex_testing, "get_config", lambda reload=False: fake_config)
7373
monkeypatch.setattr(
7474
reflex_core.config, "get_config", lambda reload=False: fake_config
7575
)

0 commit comments

Comments
 (0)