Skip to content
Snippets Groups Projects
Commit 4dc08d6e authored by Corné Lukken's avatar Corné Lukken
Browse files

Managed to have files functional in same directory

parent f9155c9b
No related branches found
No related tags found
1 merge request!58L2SS-259: Integrate unit tests using Continuous Integration (CI)
image: artefact.skatelescope.org/ska-tango-images/tango-itango:9.3.3.7
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
PBR_VERSION: "0.1"
cache:
paths:
- .cache/pip
- .tox
before_script:
- pip install tox
#before_script:
# - pip install tox
stages:
- linting
- unit-tests
......@@ -15,8 +14,10 @@ linting:
stage: linting
allow_failure: true
script:
- cd devices
- tox -e pep8
unit_test:
stage: unit-tests
script:
- cd devices
- tox -e py37
\ No newline at end of file
[DEFAULT]
test_path=./devices/test
test_path=./test
top_dir=./
\ No newline at end of file
import pbr.version
from util.lofar_git import get_version
__version__ = pbr.version.VersionInfo(
'TangoStationControl').version_string()
# from ._version import get_versions
# __version__ = get_versions()['version']
# del get_versions
__version__ = get_version()
File moved
......@@ -24,10 +24,10 @@ classifier =
[files]
packages =
devices
./
[entry_points]
console_scripts =
SDP = devices.SDP:main
PCC = devices.PCC:main
SDP = SDP:main
PCC = PCC:main
import setuptools
setuptools.setup(setup_requires=['pbr>=2.0.0'], pbr=True)
......@@ -5,11 +5,8 @@
coverage>=5.2.0 # Apache-2.0
doc8>=0.8.0 # Apache-2.0
hacking>=3.2.0,<3.3.0 # Apache-2.0
#mypy>=0.812 # MIT
python-subunit>=1.4.0 # Apache-2.0/BSD
Pygments>=2.6.0
#oslotest>=4.4.0 # Apache-2.0
#oslo.messaging>=12.2.0 # Apache-2.0
stestr>=3.0.0 # Apache-2.0
testscenarios>=0.5.0 # Apache-2.0/BSD
testtools>=2.4.0 # MIT
......
......@@ -7,10 +7,11 @@
# Distributed under the terms of the APACHE license.
# See LICENSE.txt for more info.
import unittest
import testscenarios
class BaseTestCase(testscenarios.WithScenarios):
class BaseTestCase(testscenarios.WithScenarios, unittest.TestCase):
"""Test base class."""
def setUp(self):
......
......@@ -7,9 +7,9 @@
# Distributed under the terms of the APACHE license.
# See LICENSE.txt for more info.
from devices.SDP import SDP
from SDP import SDP
from devices.test import base
from test import base
class TestSDP(base.TestCase):
......
......@@ -14,11 +14,11 @@ setenv =
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=60
deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/docker-compose/lofar-device-base/lofar-requirements.txt
-r{toxinidir}/../docker-compose/lofar-device-base/lofar-requirements.txt
commands = stestr run {posargs}
[testenv:pep8]
commands =
; doc8 doc/source/ README.rst
flake8 devices/{posargs}
bandit -r devices -x test -n5 -ll # -s B320
\ No newline at end of file
flake8 ./{posargs}
bandit -r ./ -x test -n5 -ll # -s B320
\ No newline at end of file
import setuptools
setuptools.setup(setup_requires=['pbr>=2.0.0'], pbr=True)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment