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

Pytest cleanup #2493

Merged
merged 1 commit into from
Nov 24, 2023
Merged

Pytest cleanup #2493

merged 1 commit into from
Nov 24, 2023

Conversation

benjaminwinger
Copy link
Collaborator

This removes test_main, which is unnecessary and when tests fail the output indicates test_main.py as the file instead of the actual file containing the test.

I've also removed the relative paths to allow pytest to be run from any directory, and removed the sys.path modifications in-code in favour of using the PYTHONPATH environment variable (set in the makefile).

Copy link

codecov bot commented Nov 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (373972a) 91.52% compared to head (1260d50) 91.53%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2493      +/-   ##
==========================================
+ Coverage   91.52%   91.53%   +0.01%     
==========================================
  Files        1026     1026              
  Lines       37906    37906              
==========================================
+ Hits        34695    34699       +4     
+ Misses       3211     3207       -4     

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

Makefile Outdated Show resolved Hide resolved
@benjaminwinger benjaminwinger merged commit c29c28d into master Nov 24, 2023
12 checks passed
@benjaminwinger benjaminwinger deleted the pytest-cleanup branch November 24, 2023 20:52
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.

None yet

2 participants