-
Notifications
You must be signed in to change notification settings - Fork 146
chore(fill): deprecate --flat-output flag #1632
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
base: main
Are you sure you want to change the base?
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.
LGTM, thanks!
src/pytest_plugins/filler/filler.py
Outdated
@@ -132,7 +132,7 @@ def pytest_addoption(parser: pytest.Parser): | |||
action="store_true", | |||
dest="flat_output", | |||
default=False, | |||
help="Output each test case in the directory without the folder structure.", | |||
help="[DEPRECATED] Output each test case in the directory without the folder structure. This flag will be removed in a future version.", |
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.
help="[DEPRECATED] Output each test case in the directory without the folder structure. This flag will be removed in a future version.", | |
help="[DEPRECATED] Output each test case in the directory without the folder structure. " | |
"This flag will be removed in a future version.", |
Exceeds the character limit so the linter is going to complain.
3eaadee
to
dd40fdd
Compare
This feature's quite useful to diff individual fixtures. I'm not sure we should deprecate it so fast. |
Nevermind, I was thinking of |
Sounds good, I think just adding the warning is ok since it avoids someone else from relying on the flag if we eventually want to remove it. |
@marioevz is the failing CI test the fault of the implementation? Because I can't make a connection |
dd40fdd
to
2ea88d4
Compare
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.
search for "flat_output" usages in the code. there are 2 files. the actual logic needs to be removed as well
2ea88d4
to
8b28697
Compare
- Added [DEPRECATED] to help message - Added runtime warning when flag is used - Updated documentation to indicate deprecation - Added entry to CHANGELOG.md"
8b28697
to
20d03db
Compare
ποΈ Description
π Related Issues
Fixes #1603
β Checklist
mkdocs serve
locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.