-
Notifications
You must be signed in to change notification settings - Fork 18
https://github.com/jackdewinter/pymarkdown/issues/1083 #1084
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've reviewed this pull request using the Sourcery rules engine. If you would also like our AI-powered code review then let us know.
import os | ||
import sys | ||
from pymarkdown.api import PyMarkdownApi, PyMarkdownApiException, PyMarkdownApiNoFilesFoundException | ||
from test.utils import assert_that_exception_is_raised |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (code-quality): Don't import test modules. (dont-import-test-modules
)
Explanation
Don't import test modules.Tests should be self-contained and don't depend on each other.
If a helper function is used by multiple tests,
define it in a helper module,
instead of importing one test from the other.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1084 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 189 189
Lines 19197 19197
Branches 2393 2393
=========================================
Hits 19197 19197 ☔ View full report in Codecov by Sentry. |
No description provided.