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
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
...
@@ -7,7 +7,7 @@ import subprocess
import
json
import
json
import
requests
import
requests
from
nni.experiment
import
Experiment
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
from
utils
import
METRICS_URL
,
GET_IMPORTED_DATA_URL
...
@@ -42,7 +42,7 @@ class ImportValidator(ITValidator):
...
@@ -42,7 +42,7 @@ class ImportValidator(ITValidator):
assert
proc
.
returncode
==
0
,
\
assert
proc
.
returncode
==
0
,
\
'`nnictl experiment import {0} -f {1}` failed with code {2}'
.
format
(
exp_id
,
import_data_file_path
,
proc
.
returncode
)
'`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
()
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
assert
origin_data
in
imported_data
class
MetricsValidator
(
ITValidator
):
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