Skip to content

Commit

Permalink
Non-async functions do not need pytest_asyncio.fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
masenf committed Oct 7, 2024
1 parent 9c8b715 commit 4919191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/units/test_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,7 @@ async def state_manager_redis() -> AsyncGenerator[StateManager, None]:


@pytest.fixture()
async def substate_token_redis(state_manager_redis, token):
def substate_token_redis(state_manager_redis, token):
"""A token + substate name for looking up in state manager.
Args:
Expand Down Expand Up @@ -1809,7 +1809,7 @@ async def _coro_waiter():
assert (await state_manager_redis.get_state(substate_token_redis)).num1 == exp_num1


@pytest_asyncio.fixture(loop_scope="function", scope="function")
@pytest.fixture(scope="function")
def mock_app(monkeypatch, state_manager: StateManager) -> rx.App:
"""Mock app fixture.
Expand Down

0 comments on commit 4919191

Please sign in to comment.