Skip to content

Add package scoped fixtures #2283 #3386

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

Closed
wants to merge 59 commits into from
Closed

Add package scoped fixtures #2283 #3386

wants to merge 59 commits into from

Conversation

jonozzz
Copy link

@jonozzz jonozzz commented Apr 11, 2018

In response to #2283, adding package scoped fixtures, that follow python-nose's implementation.

package/
  __init__.py
  test_foo.py

# __init__.py
def setup_module():
  print("Setting up the package")

def teardown_module():
  print("Tearing down the package")

In this case teardown_module() will be executed when all tests in test_foo.py are done.

nicoddemus and others added 30 commits March 26, 2018 11:20
3348: raise error on unknown arguments to raises
Add docs about using pytest.param in parametrized fixtures
Those were not removed in the last release because of a bug in
towncrier; I was about to fallback to don't use the .rst extension
for entries but just noticed that this was fixed in towncrier 17.8.0
so it should no longer be a problem.
change collections.abc import to fix deprecation warnings on python 3.7
Add reference docs for pytest_sessionstart/finish and update their docstrings
Use correct spelling for "more-itertools"
record_property is no longer experimental
no-capture in sample code demo'ing plugin
The descriptions have been moved directly to GitHub's new label description
slot.
Remove label descriptions from development guide
@nicoddemus
Copy link
Member

Hi @jonozzz, thanks a lot for working on this!

Could you please rebase against the latest features though? Your PR has a lot of commits which are not related to your change.

Looking forward to review this! 😁

nicoddemus and others added 25 commits April 11, 2018 13:43
Those were not removed in the last release because of a bug in
towncrier; I was about to fallback to don't use the .rst extension
for entries but just noticed that this was fixed in towncrier 17.8.0
so it should no longer be a problem.
The descriptions have been moved directly to GitHub's new label description
slot.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 92.769% when pulling 0017e6a on jonozzz:master into 372bcdb on pytest-dev:features.

@jonozzz jonozzz closed this Apr 11, 2018
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.

9 participants