-
Notifications
You must be signed in to change notification settings - Fork 0
dependencies update #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
38595a3
dependencies update
HardMax71 f8adede
flaky tests fix
HardMax71 3a1fd06
flaky tests fix
HardMax71 e299550
flaky tests fix
HardMax71 fc4b527
e2e tests added
HardMax71 c2ecf80
xdist group
HardMax71 d7941ef
ci optimizations
HardMax71 3c25d2b
local registry for dependent builds
HardMax71 7efb2a8
added curl to frontend/e2e
HardMax71 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| import pytest_asyncio | ||
| import redis.asyncio as redis | ||
| from beanie import init_beanie | ||
|
|
||
| from app.core.database_context import Database | ||
| from app.db.docs import ALL_DOCUMENTS | ||
|
|
||
|
|
||
| @pytest_asyncio.fixture(autouse=True) | ||
| async def _cleanup(db: Database, redis_client: redis.Redis): | ||
| """Clean DB and Redis before each E2E test. | ||
|
|
||
| Only pre-test cleanup - post-test cleanup causes event loop issues | ||
| when SSE/streaming tests hold connections across loop boundaries. | ||
|
|
||
| NOTE: With pytest-xdist, each worker uses a separate Redis database | ||
| (gw0→db0, gw1→db1, etc.), so flushdb() is safe and only affects | ||
| that worker's database. See tests/conftest.py for REDIS_DB setup. | ||
| """ | ||
| collections = await db.list_collection_names() | ||
| for name in collections: | ||
| if not name.startswith("system."): | ||
| await db.drop_collection(name) | ||
|
|
||
| await redis_client.flushdb() | ||
|
|
||
| # Initialize Beanie with document models | ||
| await init_beanie(database=db, document_models=ALL_DOCUMENTS) | ||
|
|
||
| yield | ||
| # No post-test cleanup to avoid "Event loop is closed" errors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.