-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor: merge enterprise tests #887
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
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors the test structure by moving the System Administrator creation from the global setup_session fixture to a local fixture that is only used by tests that specifically need to verify system directory protection. Additionally, it improves test execution by suppressing coverage warnings for auto-generated files.
Changes:
- Moved System Administrator creation from global setup to a test-specific fixture
- Removed System Administrator from expected test results in search and role tests
- Configured coverage to ignore auto-generated dishka factory files
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/conftest.py | Removed System Administrator creation from global setup_session fixture and cleaned up unused imports |
| tests/test_api/test_main/test_router/conftest.py | Added add_system_administrator fixture for tests requiring system directory |
| tests/test_api/test_main/test_router/test_delete.py | Added add_system_administrator fixture dependency |
| tests/test_api/test_main/test_router/test_modify.py | Added add_system_administrator fixture dependency |
| tests/test_api/test_main/test_router/test_modify_dn.py | Added add_system_administrator fixture dependency |
| tests/search_request_datasets.py | Removed System Administrator from expected search results in test datasets |
| tests/test_api/test_main/test_router/test_search.py | Removed System Administrator from expected search results |
| tests/test_ldap/test_roles/test_search.py | Removed System Administrator from expected role search results |
| pyproject.toml | Added coverage omit pattern for dishka factory files |
| docker-compose.test.yml | Added CoverageWarning suppression to pytest command |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
c012848 to
e008445
Compare
e008445 to
4c506eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Минорный рефакторинг для порядка: