mirror of
https://github.com/TheTedLab/SpotiStats.git
synced 2026-04-26 08:05:55 +03:00
[PR #22] [MERGED] Dev edition merge - unit tests #22
Labels
No labels
enhancement
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SpotiStats#22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/TheTedLab/SpotiStats/pull/22
Author: @TheTedLab
Created: 3/29/2024
Status: ✅ Merged
Merged: 3/29/2024
Merged by: @TheTedLab
Base:
main← Head:dev📝 Commits (10+)
e734225Setup pytest for unit testsa1da656Add tests for artist_aggregateea13e7dAdd unit tests for classes and artist template2cde8f8Add unit tests for stats utilsa7fe7c7Add unit tests for stats update7afc274Fix unit tests for stats update21b9245Add unit tests for stats from files486dd74Add unit tests automation8e57023Update confest.pyb5c541dUpdate auth token and headers imports and parameters📊 Changes
42 files changed (+11800 additions, -109 deletions)
View changed files
➕
.github/workflows/unit-tests.yaml(+51 -0)📝
README.md(+3 -0)➕
pytest.ini(+9 -0)➕
requirements.txt(+51 -0)➕
src/__init__.py(+0 -0)📝
src/aggregator/artist_aggregate.py(+10 -27)📝
src/aggregator/classes/album.py(+2 -0)📝
src/aggregator/classes/artist.py(+2 -0)📝
src/aggregator/classes/track.py(+2 -0)➕
src/aggregator/resources/__init__.py(+0 -0)➕
src/aggregator/resources/albums/album-1e0tqn3caRoNqZU6YosOLa.json(+156 -0)📝
src/aggregator/resources/artists/artist-0M2HHtY3OOQzIZxrHkbJLT.json(+6 -6)📝
src/aggregator/stats_from_files.py(+50 -28)📝
src/aggregator/stats_update.py(+27 -18)📝
src/aggregator/stats_utils.py(+19 -12)📝
src/aggregator/tracks_count.py(+32 -18)➕
tests/.coveragerc(+6 -0)➕
tests/__init__.py(+0 -0)➕
tests/conftest.py(+25 -0)➕
tests/resources/__init__.py(+0 -0)...and 22 more files
📄 Description
Add and setup automation for unit tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.