Seed policysync container code
[dcaegen2/deployments.git] / dcae-services-policy-sync / tox.ini
1 # ============LICENSE_START=======================================================
2 # Copyright (c) 2021 AT&T Intellectual Property. All rights reserved.
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 # ============LICENSE_END=========================================================
16
17 # content of: tox.ini , put in same dir as setup.py
18 [tox]
19 envlist = py36, py38
20
21 [testenv]
22 deps=
23     pytest
24     coverage
25     pytest-cov
26     pytest-asyncio
27     pytest-aiohttp
28 setenv =
29     PYTHONPATH={toxinidir}
30     REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
31 recreate = True
32 commands=
33     python --version
34     pytest -s --cov policysync --cov-report=xml --cov-report=term tests --verbose
35
36 [testenv:lint]
37 deps =
38     flake8
39     pylint
40 commands =
41     flake8 policysync
42     pylint policysync