Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
3220f21f
"vscode:/vscode.git/clone" did not exist on "be3599066699805de1ed7cfa442b43a31d8a6846"
Commit
3220f21f
authored
Oct 27, 2020
by
Sylvain Gugger
Browse files
Styling fix
parent
286dc19a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/transformers/testing_utils.py
src/transformers/testing_utils.py
+5
-6
No files found.
src/transformers/testing_utils.py
View file @
3220f21f
...
@@ -581,19 +581,18 @@ def mockenv(**kwargs):
...
@@ -581,19 +581,18 @@ def mockenv(**kwargs):
def
pytest_terminal_summary_main
(
tr
,
id
):
def
pytest_terminal_summary_main
(
tr
,
id
):
"""
"""
Generate multiple reports at the end of test suite run - each report goes into a dedicated file
Generate multiple reports at the end of test suite run - each report goes into a dedicated file
in the current
in the current
directory. The report files are prefixed with the test suite name.
directory. The report files are prefixed with the test suite name.
This function emulates --duration and -rA pytest arguments.
This function emulates --duration and -rA pytest arguments.
This function is to be called from `conftest.py` via `pytest_terminal_summary` wrapper that has
This function is to be called from `conftest.py` via `pytest_terminal_summary` wrapper that has
to be defined
to be defined
there.
there.
Args:
Args:
- tr: `terminalreporter` passed from `conftest.py`
- tr: `terminalreporter` passed from `conftest.py`
- id: unique id like `tests` or `examples` that will be incorporated into the final reports
- 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
filenames - this is needed as some jobs have multiple runs of pytest, so we can't have them overwrite each other.
overwrite each other.
NB: this functions taps into a private _pytest API and while unlikely, it could break should
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
pytest do internal changes - also it calls default internal methods of terminalreporter which
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment