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

tests: do not setup pytest plugin entrypoint #10121

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

skshetry
Copy link
Member

@skshetry skshetry commented Nov 29, 2023

We should not register a pytest plugin automatically, as we may have fixtures that might override user's fixtures. Also, it might raise import errors as in #10118.

We can still use this as a plugin ourselves by setting the following in conftest.py file.

pytest_plugins = ['dvc.testing.plugin']

We should not register a pytest plugin automaticallly, as we may
have fixtures that might override user's fixtures. Also, it might
raise import errors as in iterative#10118.

We can still use this as a plugin ourselves by setting the following
in `conftest.py` file.
```python
pytest_plugins = ['dvc.testing.plugin']
```
@skshetry skshetry requested a review from pmrowla November 29, 2023 06:00
Copy link

codecov bot commented Nov 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (83dd2b2) 90.56% compared to head (da508fe) 90.66%.
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10121      +/-   ##
==========================================
+ Coverage   90.56%   90.66%   +0.10%     
==========================================
  Files         488      488              
  Lines       37392    37425      +33     
  Branches     5434     5442       +8     
==========================================
+ Hits        33864    33932      +68     
+ Misses       2892     2857      -35     
  Partials      636      636              

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

@skshetry skshetry merged commit 7c61463 into iterative:main Nov 29, 2023
17 of 18 checks passed
@skshetry skshetry deleted the no-pytest-plugin-entrypoint branch November 29, 2023 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants