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
OpenDAS
nni
Commits
100b95fe
"test/vscode:/vscode.git/clone" did not exist on "4221505d3e579e27d2ead8c59fba9f57b4979052"
Unverified
Commit
100b95fe
authored
Jan 06, 2022
by
QuanluZhang
Committed by
GitHub
Jan 06, 2022
Browse files
Fix integration test of importing data (#4448)
parent
e782fe21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/nni_test/nnitest/validators.py
test/nni_test/nnitest/validators.py
+2
-2
No files found.
test/nni_test/nnitest/validators.py
View file @
100b95fe
...
...
@@ -7,7 +7,7 @@ import subprocess
import
json
import
requests
from
nni.experiment
import
Experiment
from
nni.tools.nnictl.updater
import
load_
search_space
from
nni.tools.nnictl.updater
import
load_
imported_data
from
utils
import
METRICS_URL
,
GET_IMPORTED_DATA_URL
...
...
@@ -42,7 +42,7 @@ class ImportValidator(ITValidator):
assert
proc
.
returncode
==
0
,
\
'`nnictl experiment import {0} -f {1}` failed with code {2}'
.
format
(
exp_id
,
import_data_file_path
,
proc
.
returncode
)
imported_data
=
requests
.
get
(
GET_IMPORTED_DATA_URL
).
json
()
origin_data
=
load_
search_space
(
import_data_file_path
).
replace
(
' '
,
''
)
origin_data
=
load_
imported_data
(
import_data_file_path
).
replace
(
' '
,
''
)
assert
origin_data
in
imported_data
class
MetricsValidator
(
ITValidator
):
...
...
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