efiacor | 9b53268 | 2019-11-06 11:08:54 +0000 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (C) 2019 Nordix Foundation. |
| 3 | # ================================================================================ |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | # SPDX-License-Identifier: Apache-2.0 |
| 17 | # ============LICENSE_END========================================================= |
| 18 | |
| 19 | [tox] |
Alexander Mazuruk | 835ad81 | 2021-04-12 18:48:00 +0200 | [diff] [blame] | 20 | envlist = flake8,py39 |
efiacor | 9b53268 | 2019-11-06 11:08:54 +0000 | [diff] [blame] | 21 | skip_missing_interpreters = true |
| 22 | |
| 23 | [testenv] |
| 24 | deps= |
| 25 | -rrequirements.txt |
| 26 | pytest |
| 27 | coverage |
| 28 | pytest-cov |
emartin | 331a93a | 2019-12-11 11:48:53 +0000 | [diff] [blame] | 29 | responses==0.10.7 |
egernug | 2e3c407 | 2020-08-19 14:57:36 +0100 | [diff] [blame] | 30 | parameterized==0.7.4 |
efiacor | 9b53268 | 2019-11-06 11:08:54 +0000 | [diff] [blame] | 31 | setenv = |
| 32 | PYTHONPATH={toxinidir}/pmsh_service:{toxinidir}/pmsh_service/mod:{toxinidir}/tests |
| 33 | commands= |
ERIMROB | 26b76c0 | 2020-02-12 11:35:20 +0000 | [diff] [blame] | 34 | pytest --junitxml xunit-results.xml --cov pmsh_service --cov-report xml --cov-report term \ |
| 35 | tests --verbose --cov-fail-under=70 |
efiacor | 9b53268 | 2019-11-06 11:08:54 +0000 | [diff] [blame] | 36 | |
| 37 | [testenv:flake8] |
| 38 | basepython = python3 |
| 39 | skip_install = true |
| 40 | deps = flake8 |
| 41 | commands = flake8 pmsh_service tests |
| 42 | |
| 43 | [flake8] |
| 44 | max-line-length=100 |
emartin | 331a93a | 2019-12-11 11:48:53 +0000 | [diff] [blame] | 45 | ignore = E999 |