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

Feature/additional tests for internal classes #53

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

saschadoemer
Copy link
Member

No description provided.

This commit introduces new unit tests for the api enums and environments modules. The tests cover the basic functionality and expected outputs of the methods in these modules, improving our confidence in their reliability and correctness.
The commit introduces a suite of tests for the authorization module. It covers testing for initialization, generation and extraction of authentication requests, response handling for both successful and error situations as well as query parameters extraction.
The commit renames and moves the 'test_auth.py' file to a more specific directory within the tests folder. This new location 'agrirouter/auth/' better represents its purpose in the project structure.
Minor changes were applied to the assertion tests in the 'test_auth.py' and 'test_environments.py' modules. In 'test_auth.py', the test for 'None' value is now using the 'is' keyword instead of '==', following Python's convention for comparing against None. In 'test_environments.py', the line exceeding the length limit has been handled by appending '# noqa' to bypass the flake8 warning.
@oliverrahner
Copy link
Member

We need reliable way to distinguish integration tests (which connect to agrirouter) and internal tests (running independently).
As we have test runs which should only target internal tests, I'd prefer to have all internal tests under the internal/ folder.
If we go the other route of putting all integration tests under integration/, we'd need to check how to easily select only the internal tests.

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.

None yet

2 participants