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

More idiomatic py.testing #41

Merged
merged 2 commits into from
Nov 22, 2023
Merged

Conversation

akx
Copy link
Contributor

@akx akx commented Nov 21, 2023

This makes the testing configuration a little more idiomatic by using pytest.mark.parametrize so each test file gets run as a separate test case.

@akx akx force-pushed the more-idiomatic-pytesting branch from 3659608 to 956e41c Compare November 21, 2023 18:03
@codecov-commenter
Copy link

codecov-commenter commented Nov 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8dcae6d) 58.89% compared to head (04be95c) 58.83%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #41      +/-   ##
==========================================
- Coverage   58.89%   58.83%   -0.07%     
==========================================
  Files          11       12       +1     
  Lines         776      770       -6     
==========================================
- Hits          457      453       -4     
+ Misses        319      317       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@akx akx force-pushed the more-idiomatic-pytesting branch from 956e41c to 440d6b4 Compare November 21, 2023 18:12
Copy link
Collaborator

@Natooz Natooz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you this is great!
Just waiting for your take on the comment before merging
As a non-software engineer (not day-to-day), I tried to follow the best practices when programming, to get good code quality. Now today I, thanks to you, I learned a ton of things and feel like I only did half of my job 😄
The CI is at a next level now!

tests/test_pianoroll.py Outdated Show resolved Hide resolved
@akx akx force-pushed the more-idiomatic-pytesting branch from 440d6b4 to 3168cc9 Compare November 22, 2023 06:28
@akx

This comment was marked as outdated.

@akx akx force-pushed the more-idiomatic-pytesting branch from dfbe595 to 04be95c Compare November 22, 2023 07:41
@Natooz Natooz merged commit c81dfe2 into YatingMusic:master Nov 22, 2023
17 checks passed
@akx akx deleted the more-idiomatic-pytesting branch November 22, 2023 08:45
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.

3 participants