[Issue-Id:RICAPP-155]Code changes to support for JJB and Unit testing for AD xApp
[ric-app/ad.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 75f1f8a..8df15db 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,4 @@
-# ==================================================================================
-#       Copyright (c) 2020 AT&T Intellectual Property.
+#   Copyright (c) 2020 HCL Technologies Limited.
 #
 #   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 @@ envlist = code,flake8,docs,docs-linkcheck
 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 @@ commands =
     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 @@ commands = sh -c 'pip freeze > requirements.txt'
 [testenv:docs]
 whitelist_externals = echo
 skipsdist = true
-basepython = python3.8
+basepython = python3.7
 deps =
     sphinx
     sphinx-rtd-theme
@@ -64,7 +67,7 @@ commands =
 
 [testenv:docs-linkcheck]
 skipsdist = true
-basepython = python3.8
+basepython = python3.7
 deps = sphinx
        sphinx-rtd-theme
        sphinxcontrib-httpdomain