Skip to content

Commit

Permalink
Revert "Styling fix"
Browse files Browse the repository at this point in the history
This reverts commit bc42fea.
  • Loading branch information
fabiocapsouza authored Nov 15, 2020
1 parent dc91c53 commit 9d4869a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/transformers/testing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,18 +581,19 @@ def mockenv(**kwargs):

def pytest_terminal_summary_main(tr, id):
"""
Generate multiple reports at the end of test suite run - each report goes into a dedicated file in the current
directory. The report files are prefixed with the test suite name.
Generate multiple reports at the end of test suite run - each report goes into a dedicated file
in the current directory. The report files are prefixed with the test suite name.
This function emulates --duration and -rA pytest arguments.
This function is to be called from `conftest.py` via `pytest_terminal_summary` wrapper that has to be defined
there.
This function is to be called from `conftest.py` via `pytest_terminal_summary` wrapper that has
to be defined there.
Args:
- tr: `terminalreporter` passed from `conftest.py`
- id: unique id like `tests` or `examples` that will be incorporated into the final reports
filenames - this is needed as some jobs have multiple runs of pytest, so we can't have them overwrite each other.
filenames - this is needed as some jobs have multiple runs of pytest, so we can't have them
overwrite each other.
NB: this functions taps into a private _pytest API and while unlikely, it could break should
pytest do internal changes - also it calls default internal methods of terminalreporter which
Expand Down

0 comments on commit 9d4869a

Please sign in to comment.