[Issue-Id:RICAPP-155]Code changes to support for JJB and Unit testing for AD xApp
Signed-off-by: deepanshuk <deepanshu.k@hcl.com>
Change-Id: Ibad473f36163abf2bad552d52b628208b3e4cb43
diff --git a/tox.ini b/tox.ini
index 75f1f8a..23a1e26 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,4 @@
-# ==================================================================================
-# Copyright (c) 2020 AT&T Intellectual Property.
+# Copyright (c) 2020 AT&T Intellectual Property.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -18,13 +17,15 @@
minversion = 2.0
[testenv:code]
-basepython = python3.8
+basepython = python3.7
deps=
pytest
coverage
pytest-cov
+
setenv =
LD_LIBRARY_PATH = /usr/local/lib/:/usr/local/lib64
+ PYTHONPATH = {toxinidir}:ad:/usr/lib/python3.7/site-packages/
RMR_SEED_RT = tests/fixtures/test_local.rt
RMR_ASYNC_CONN = 0
USE_FAKE_SDL = 1
@@ -34,9 +35,11 @@
coverage xml -i
[testenv:flake8]
-basepython = python3.8
+basepython = python3.7
skip_install = true
deps = flake8
+setenv =
+ PYTHONPATH = {toxinidir}:ad:/usr/lib/python3.7/site-packages/
commands = flake8 setup.py ad tests
[flake8]
@@ -51,7 +54,7 @@
[testenv:docs]
whitelist_externals = echo
skipsdist = true
-basepython = python3.8
+basepython = python3.7
deps =
sphinx
sphinx-rtd-theme
@@ -64,7 +67,7 @@
[testenv:docs-linkcheck]
skipsdist = true
-basepython = python3.8
+basepython = python3.7
deps = sphinx
sphinx-rtd-theme
sphinxcontrib-httpdomain