[PR #22] [MERGED] Dev edition merge - unit tests #22

Closed
opened 2026-02-28 15:18:50 +03:00 by kerem · 0 comments
Owner

📋 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: mainHead: dev


📝 Commits (10+)

  • e734225 Setup pytest for unit tests
  • a1da656 Add tests for artist_aggregate
  • ea13e7d Add unit tests for classes and artist template
  • 2cde8f8 Add unit tests for stats utils
  • a7fe7c7 Add unit tests for stats update
  • 7afc274 Fix unit tests for stats update
  • 21b9245 Add unit tests for stats from files
  • 486dd74 Add unit tests automation
  • 8e57023 Update confest.py
  • b5c541d Update 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.

## 📋 Pull Request Information **Original PR:** https://github.com/TheTedLab/SpotiStats/pull/22 **Author:** [@TheTedLab](https://github.com/TheTedLab) **Created:** 3/29/2024 **Status:** ✅ Merged **Merged:** 3/29/2024 **Merged by:** [@TheTedLab](https://github.com/TheTedLab) **Base:** `main` ← **Head:** `dev` --- ### 📝 Commits (10+) - [`e734225`](https://github.com/TheTedLab/SpotiStats/commit/e7342252aab1bee97124c99baa57182a588d40a0) Setup pytest for unit tests - [`a1da656`](https://github.com/TheTedLab/SpotiStats/commit/a1da65638889aed5b1a5c598fcee760f10d9acd0) Add tests for artist_aggregate - [`ea13e7d`](https://github.com/TheTedLab/SpotiStats/commit/ea13e7d8e9e3cbe5e6823f15a81708b7196c6311) Add unit tests for classes and artist template - [`2cde8f8`](https://github.com/TheTedLab/SpotiStats/commit/2cde8f899612db044fa70373c40183520c66108b) Add unit tests for stats utils - [`a7fe7c7`](https://github.com/TheTedLab/SpotiStats/commit/a7fe7c75e7ff5fd2bac11b8d942659f400146344) Add unit tests for stats update - [`7afc274`](https://github.com/TheTedLab/SpotiStats/commit/7afc2748b96ae143ebca7cbf0a0f1c23f2512ab5) Fix unit tests for stats update - [`21b9245`](https://github.com/TheTedLab/SpotiStats/commit/21b92457f4e85b908f968c312d0d29f97dbc155c) Add unit tests for stats from files - [`486dd74`](https://github.com/TheTedLab/SpotiStats/commit/486dd74fd923a66d4b635b06b4408ba87cef9778) Add unit tests automation - [`8e57023`](https://github.com/TheTedLab/SpotiStats/commit/8e5702311f8371a972bc6fa5bb948d236db268cb) Update confest.py - [`b5c541d`](https://github.com/TheTedLab/SpotiStats/commit/b5c541dd248a1f839b9db240aa50a4a9d1a23b23) Update auth token and headers imports and parameters ### 📊 Changes **42 files changed** (+11800 additions, -109 deletions) <details> <summary>View changed files</summary> ➕ `.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_ </details> ### 📄 Description Add and setup automation for unit tests --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 15:18:50 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SpotiStats#22
No description provided.