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

Add unit tests #21

Merged
merged 10 commits into from
Mar 29, 2024
Merged

Add unit tests #21

merged 10 commits into from
Mar 29, 2024

Conversation

TheTedLab
Copy link
Owner

Setup pytest for unit tests
Add unit tests for artist_aggregate, classes, stats utils, stats update, stats from files
Add unit tests automation

Setup pytest with pytest.ini and .coveragerc
Add conftest.py for fixtures
Add __init__.py files for correct python directories search
Add tests directory and tests/resources
Add unit tests for tracks_count.py and artist_aggregate.py
Some fixes in previous tests
Add files systems path
Add test for exception raising
Add unit tests for Album, Artist and Track classes
Add unit test for get_artist_response_template function from stats_utils.py
Add json file to resources and fixture to get it
Add unit tests for stats_utils.py functions
Add some fixtures
Add resource files
Refactor file_path for stats files and stats update methods
Add unit tests for stats_update_main function in stats_update.py
Add and change some resource files
Fix directories imports
Rename main function and parameters
Fix tracks_count.py for MacOS
Add unit tests for stats_update_main function in stats_update.py for invalid and empty artist ids
Refactor and extend artist id in tests
Extend ResponseObject class to util_classes.py
Add doc-lines for tests and functions
Add unit tests for stats_from_files_main function in stats_from_files.py
Refactor stats_from_files main function and extend parameters
Fix imports paths
Add some resource files
Fix test artists files directory and paths
Add yaml workflow for unit tests
Update README.md with tests and coverage badges
Add requirements.txt for projects libraries
@TheTedLab TheTedLab added the enhancement New feature or request label Mar 29, 2024
@TheTedLab TheTedLab self-assigned this Mar 29, 2024
Remove unnecessary fixture for headers taking
Remove imports for auth token and client headers from functions for testing setup
Extend headers, tokens and extensions lines with parameters
Change unit tests args for headers and extensions
@TheTedLab TheTedLab merged commit 0e67904 into dev Mar 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

1 participant