1 Star 0 Fork 1

lei4321 / photonix

forked from ning_sir / photonix 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
test.py 530 Bytes
一键复制 编辑 原始数据 按行查看 历史
Damian Moore 提交于 2021-03-02 20:19 . Test runner improvement
import os
from pathlib import Path
import sys
import pytest
import tensorflow as tf
sys.path.insert(0, str(Path(__file__).parent.resolve()))
os.environ['ENV'] = 'test'
if __name__ == '__main__':
pytest_args = ['tests']
if len(sys.argv) > 1:
pytest_args = sys.argv[1:]
if not pytest_args[0].startswith('tests/'):
pytest_args[0] = 'tests/' + pytest_args[0]
if not pytest_args[0].endswith('.py'):
pytest_args[0] = pytest_args[0] + '.py'
exit(pytest.main(pytest_args))
Python
1
https://gitee.com/lei4321/photonix.git
git@gitee.com:lei4321/photonix.git
lei4321
photonix
photonix
master

搜索帮助