diff options
Diffstat (limited to 'packages/meshbay-hub/tests/conftest.py')
| -rw-r--r-- | packages/meshbay-hub/tests/conftest.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/meshbay-hub/tests/conftest.py b/packages/meshbay-hub/tests/conftest.py index b42aba1..ffd6c2e 100644 --- a/packages/meshbay-hub/tests/conftest.py +++ b/packages/meshbay-hub/tests/conftest.py @@ -48,10 +48,18 @@ async def app(hub_config): from meshbay_hub.app import create_app application = create_app(hub_config) + # Disable rate limiting in tests + from meshbay_hub.api.middleware import limiter + limiter.enabled = False + # Run lifespan startup manually async with application.router.lifespan_context(application): yield application + # Reset admin usernames after each test + from meshbay_hub.api.deps import set_admin_usernames + set_admin_usernames([]) + @pytest_asyncio.fixture async def client(app): |