Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
735d2bb6
Unverified
Commit
735d2bb6
authored
Jan 14, 2022
by
novice
Committed by
GitHub
Jan 14, 2022
Browse files
Update test_configuration_common.py (#15160)
parent
51d7ebf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_configuration_common.py
tests/test_configuration_common.py
+1
-1
No files found.
tests/test_configuration_common.py
View file @
735d2bb6
...
@@ -180,7 +180,7 @@ class ConfigTester(object):
...
@@ -180,7 +180,7 @@ class ConfigTester(object):
if
len
(
wrong_values
)
>
0
:
if
len
(
wrong_values
)
>
0
:
errors
=
"
\n
"
.
join
([
f
"-
{
v
[
0
]
}
: got
{
v
[
1
]
}
instead of
{
v
[
2
]
}
"
for
v
in
wrong_values
])
errors
=
"
\n
"
.
join
([
f
"-
{
v
[
0
]
}
: got
{
v
[
1
]
}
instead of
{
v
[
2
]
}
"
for
v
in
wrong_values
])
raise
ValueError
(
f
"The following keys were not properly se
y
in the config:
\n
{
errors
}
"
)
raise
ValueError
(
f
"The following keys were not properly se
t
in the config:
\n
{
errors
}
"
)
def
run_common_tests
(
self
):
def
run_common_tests
(
self
):
self
.
create_and_test_config_common_properties
()
self
.
create_and_test_config_common_properties
()
...
...
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