forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
PythonAPITests
Anastasia Kuporosova edited this page Dec 6, 2022
·
3 revisions
In the following instructions, for all commands, we assume that they are executed from the src/bindings/python
directory unless otherwise noted.
For testing OpenVINO Python API you need to do next steps:
- Change directory to the Python API root folder:
cd src/bindings/python
- Install the special requirements file for testing:
python -m pip install -r requirements_test.txt
For running python API test execute this command:
python -m pytest tests/
For running compatibility tests execute this command:
python -m pytest tests_compatibility/
For checking the codestyle of Python API execute this command:
python -m flake8 ./src/openvino --config=setup.cfg
For checking the codestyle of compatibility nGraph Python API execute this command:
python -m flake8 ./src/compatibility/ngraph --config=setup.cfg
For checking the codestyle of compatibility InferenceEngine Python API execute this command:
cd src/compatibility/openvino
python -m flake8 ./ --config=setup.cfg
© Copyright 2018-2022, OpenVINO team
- Home
- General resources
- How to build
-
Developer documentation
- Inference Engine architecture
- OpenVINO Python API
- CPU plugin
- GPU plugin
- HETERO plugin architecture
- Snippets
- Sample for IE C++/C/Python API
- Proxy plugin (Concept)
- Tests