a-luna / vigorish

MLB data web scraper, Python CLI application
https://aaronluna.dev/projects/vigorish
MIT License
2 stars 2 forks source link

fix: update tests after db backup/restore changes #854

Closed a-luna closed 3 years ago

sourcery-ai[bot] commented 3 years ago

Sourcery Code Quality Report

❌  Merging this PR will decrease code quality in the affected files by 1.33%.

Quality metrics Before After Change
Complexity 1.16 ⭐ 1.42 ⭐ 0.26 👎
Method Length 39.84 ⭐ 42.31 ⭐ 2.47 👎
Working memory 5.31 ⭐ 5.29 ⭐ -0.02 👍
Quality 83.85% 82.52% -1.33% 👎
Other metrics Before After Change
Lines 430 498 68
Changed files Quality Before Quality After Quality Change
src/vigorish/app.py 89.09% ⭐ 88.79% ⭐ -0.30% 👎
src/vigorish/tasks/restore_database.py 84.02% ⭐ 84.21% ⭐ 0.19% 👍
tests/test_with_unique_empty_database/test_task_restore_database.py 78.11% ⭐ 74.60% 🙂 -3.51% 👎

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
tests/test_with_unique_empty_database/test_task_restore_database.py test_restore_database 2 ⭐ 252 ⛔ 5 ⭐ 64.82% 🙂 Try splitting into smaller methods
tests/test_with_unique_empty_database/test_task_restore_database.py create_recently_debuted_player_data 1 ⭐ 127 😞 4 ⭐ 78.80% ⭐ Try splitting into smaller methods

Legend and Explanation

The emojis denote the absolute quality of the code:

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Help us improve this quality report!