Skip to content

Commit

Permalink
Fix pydocstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Oct 17, 2024
1 parent 5b6fd5d commit 9226957
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pytest_reportportal/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,11 @@ def report_fixture(request, name: str, error_msg: str) -> None:
# no types for backward compatibility for older pytest versions
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_setup(fixturedef, request) -> None:
"""Report fixture setup.
:param fixturedef: represents definition of the texture class
:param request: represents fixture execution metadata
"""
yield from report_fixture(
request, f'{fixturedef.scope} fixture setup: {fixturedef.argname}',
f'{fixturedef.scope} fixture setup failed: {fixturedef.argname}')
Expand All @@ -341,6 +346,11 @@ def pytest_fixture_setup(fixturedef, request) -> None:
# no types for backward compatibility for older pytest versions
@pytest.hookimpl(hookwrapper=True)
def pytest_fixture_post_finalizer(fixturedef, request) -> None:
"""Report fixture teardown.
:param fixturedef: represents definition of the texture class
:param request: represents fixture execution metadata
"""
yield from report_fixture(
request, f'{fixturedef.scope} fixture teardown: {fixturedef.argname}',
f'{fixturedef.scope} fixture teardown failed: {fixturedef.argname}')
Expand Down

0 comments on commit 9226957

Please sign in to comment.