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
e1bb2ebd
Unverified
Commit
e1bb2ebd
authored
Oct 11, 2021
by
Luis F. Talavera R
Committed by
GitHub
Oct 11, 2021
Browse files
Replace assert with unittest assertions (#13957)
parent
6e4c8f68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/test_cli.py
tests/test_cli.py
+3
-3
No files found.
tests/test_cli.py
View file @
e1bb2ebd
...
@@ -27,6 +27,6 @@ class CLITest(unittest.TestCase):
...
@@ -27,6 +27,6 @@ class CLITest(unittest.TestCase):
with
CaptureStd
()
as
cs
:
with
CaptureStd
()
as
cs
:
transformers
.
commands
.
transformers_cli
.
main
()
transformers
.
commands
.
transformers_cli
.
main
()
assert
"Python version"
in
cs
.
out
self
.
assert
In
(
"Python version"
,
cs
.
out
)
assert
"Platform"
in
cs
.
out
self
.
assert
In
(
"Platform"
,
cs
.
out
)
assert
"Using distributed or parallel set-up in script?"
in
cs
.
out
self
.
assert
In
(
"Using distributed or parallel set-up in script?"
,
cs
.
out
)
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