Skip to content
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

Update conftest.py #131

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

likhon-forbidden
Copy link

Added Documentation for Fixtures: Added docstrings to fixtures for better documentation.

Added Mocked configure_interpreter Fixture: Created a fixture mock_configure_interpreter to mock the configure_interpreter function, making it easier to test server endpoints without invoking the actual interpreter setup.

Added Authenticated and Authorized Client Fixtures: Added fixtures (authenticated_client and authorized_client) to provide TestClient instances with authentication and authorization setup, respectively.

Added Invalid Client Fixture: Added a fixture (invalid_client) to provide a TestClient instance without proper authentication/authorization, useful for testing unauthorized access scenarios.

Added Test Data Fixture: Added a fixture (test_data) to provide common test data, promoting DRY (Don't Repeat Yourself) principles in tests.

Added Mocked Request Fixture: Added a fixture (mock_request) to mock the requests.get function, facilitating testing of code that relies on external HTTP requests.

Added Documentation for Fixtures: Added docstrings to fixtures for better documentation.

Added Mocked configure_interpreter Fixture: Created a fixture mock_configure_interpreter to mock the configure_interpreter function, making it easier to test server endpoints without invoking the actual interpreter setup.

Added Authenticated and Authorized Client Fixtures: Added fixtures (authenticated_client and authorized_client) to provide TestClient instances with authentication and authorization setup, respectively.

Added Invalid Client Fixture: Added a fixture (invalid_client) to provide a TestClient instance without proper authentication/authorization, useful for testing unauthorized access scenarios.

Added Test Data Fixture: Added a fixture (test_data) to provide common test data, promoting DRY (Don't Repeat Yourself) principles in tests.

Added Mocked Request Fixture: Added a fixture (mock_request) to mock the requests.get function, facilitating testing of code that relies on external HTTP requests.
@tyfiero
Copy link
Collaborator

tyfiero commented Mar 28, 2024

Thanks @likhon-forbidden. I don't see in the code you added how the features you mentioned were implemented, can you explain the benefits of your approach to the conftest.py?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants