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
990364b7
Unverified
Commit
990364b7
authored
Dec 05, 2020
by
liuzhe-lz
Committed by
GitHub
Dec 05, 2020
Browse files
[Retiarii] Fix unit test (#3064)
parent
b40e3db7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
test/ut/__init__.py
test/ut/__init__.py
+10
-2
No files found.
test/ut/__init__.py
View file @
990364b7
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
"""
"""
Unit test of NNI Python modules.
Unit test of NNI Python modules.
Test cases of each module should be placed at same path of their source files.
Test cases of each module should be placed at same path of their source files.
For example if `nni/tool/annotation` has one test case, it should be placed at `test/ut/tool/annotation.py`;
For example if `nni/tool/annotation` has one test case, it should be placed at `test/ut/tool/
test_
annotation.py`;
if it has multiple test cases, they should be placed in `test/ut/tool/annotation/` directory.
if it has multiple test cases, they should be placed in `test/ut/tool/annotation/` directory.
"Legacy" test cases carried from NNI v1.x might not follow above convention:
"Legacy" test cases carried from NNI v1.x might not follow above convention:
+ Directory `sdk` contains old test cases previously in `src/sdk/pynni/tests`.
+ Directory `sdk` contains old test cases previously in `src/sdk/pynni/tests`.
+ Directory `tools/
cmd
` contains old test cases previously in `tools/cmd/tests`.
+ Directory `tools/
nnictl
` contains old test cases previously in `tools/
nni_
cmd/tests`.
+ Directory `tools/annotation` contains old test cases previously in `tools/nni_annotation`.
+ Directory `tools/annotation` contains old test cases previously in `tools/nni_annotation`.
+ Directory `tools/trial_tool` contains old test cases previously in `tools/nni_trial_tool/test`.
+ Directory `tools/trial_tool` contains old test cases previously in `tools/nni_trial_tool/test`.
"""
"""
import
os
os
.
environ
[
'NNI_PLATFORM'
]
=
'unittest'
os
.
environ
[
'NNI_TRIAL_JOB_ID'
]
=
'test_trial_job_id'
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