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: add test_fixture_arg_ordering #6554

Merged
merged 1 commit into from Jan 24, 2020

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Jan 24, 2020

This is a regression test for part of
#6492, testing one of the
fixes in #6551.

@@ -4207,3 +4207,32 @@ def test_bug(value):
)
result = testdir.runpytest()
result.assert_outcomes(passed=10)


def test_fixture_arg_ordering(testdir):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def test_fixture_arg_ordering(testdir):
def test_fixture_arg_ordering(testdir):
"""
This test describes how fixtures in the same scope but without explicit dependencies
between them are created. While users should make dependencies explicit, often
they rely on this order, so this test exists to catch regressions in this regard.
See #6540 and #6492.
"""

Copy link
Contributor Author

@blueyed blueyed Jan 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicoddemus
Thanks, please squash/force-push your suggestion and merge then.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. 👍

This is a regression test for part of
pytest-dev#6492, testing one of the
fixes in pytest-dev#6551.
@blueyed blueyed merged commit 2c32dad into pytest-dev:master Jan 24, 2020
@blueyed blueyed deleted the test_fixture_arg_ordering branch January 24, 2020 22:41
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