-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[ci] fix masked tests #2567
[ci] fix masked tests #2567
Conversation
It seems that one of these masked tests has been failing! (build link) |
@jameslamb It seems like the test was not recognized before due to the double naming and looks like it never should pass like that anyway! Nice catch 😄 I think the |
…nto fix/duplicated-tests
wow! Makes me glad I did this 😀 I just pushed 859b6b2, let's see if it helps. Seems like it should, based on the test below it. |
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.
Looks good @jameslamb!
Update favicon manifest for orion UI
Thanks for contributing to Prefect!
Please describe your work and make sure your PR:
CHANGELOG.md
(if appropriate)docs/outline.toml
for API reference docs (if appropriate)What does this PR change?
Thanks for this awesome project! I've been getting familiar with
prefect
this week, and wanted to contribute back where I could. I noticed you aren't runningflake8
in this project, so I ran that over the codebase to see if there were any issues that could be fixed.I saw one pattern that I think it would be helpful to address...duplicated tests.
If you run this command from the root of the repo
you'll see the following:
In this PR, I tried to address those warnings by fixing those test files. I saw three flavors of problem:
I know that I don't have full context for what these tests are doing, so please let me know if I made any mistakes.
Why is this PR important?
This PR makes sure that all of the project's tests are run in CI. If
pytest
finds duplicated tests methods in a file, it will only run one of them. You can test by creating a file called test_stuff.py with this content:Run
pytest test_stuff.py
and you'll see this:Change the first
test_something()
totest_something_else()
, re-runpytest test_stuff.py
, and you'll see this:Thanks for your time and consideration!