__init__.py 762 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""
Unit test of NNI Python modules.

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`;
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:

  + 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/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`.
"""