Verplaatsen test directory
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Marcel Nijenhof
2022-01-03 18:32:08 +01:00
parent 5fe756ce97
commit 664b215f16
4 changed files with 9 additions and 24 deletions

View File

@@ -10,11 +10,8 @@ platform:
steps: steps:
- name: Run unit test - name: Run unit test
environment:
PYTHONPATH: ..
commands: commands:
- cd src - python3 tests/main.py
- python3 -m unittest -v lmwsip.tests
--- ---
kind: pipeline kind: pipeline
@@ -28,11 +25,8 @@ platform:
steps: steps:
- name: Run unit test - name: Run unit test
environment:
PYTHONPATH: .
commands: commands:
- cd src - python3 tests/main.py
- python3 -m unittest -v lmwsip.tests
--- ---
kind: pipeline kind: pipeline
@@ -46,11 +40,8 @@ platform:
steps: steps:
- name: Run unit test - name: Run unit test
environment:
PYTHONPATH: .
commands: commands:
- cd src - python3 tests/main.py
- python3 -m unittest -v lmwsip.tests
--- ---
kind: pipeline kind: pipeline
@@ -77,12 +68,9 @@ name: docker_python:3.6
steps: steps:
- name: Run unit test - name: Run unit test
image: python:3.6 image: python:3.6
environment:
PYTHONPATH: .
commands: commands:
- pip install python-dateutil - pip install python-dateutil
- cd src - tests/main.py
- python -m unittest -v lmwsip.tests
--- ---
kind: pipeline kind: pipeline
@@ -92,13 +80,10 @@ name: docker_python:latest
steps: steps:
- name: Run unit test - name: Run unit test
image: python:latest image: python:latest
environment:
PYTHONPATH: .
commands: commands:
- pip install python-dateutil - pip install python-dateutil
- python --version - python --version
- cd src - python tests/main.py
- python -m unittest -v lmwsip.tests
--- ---
kind: pipeline kind: pipeline
@@ -172,7 +157,7 @@ steps:
- > - >
[ $(python -c "import lmwsip; print(lmwsip.__version__)") = [ $(python -c "import lmwsip; print(lmwsip.__version__)") =
$(python setup.py --version) ] $(python setup.py --version) ]
- python -m unittest -v lmwsip.tests - python tests/main.py
when: when:
branch: branch:
- master - master

View File

@@ -4,10 +4,10 @@ import sys
import io import io
import unittest import unittest
import lmwsip import lmwsip
import lmwsip.tests.stubSipServer import stubSipServer
import logging import logging
from lmwsip.tests.stubSipServer import sipServer from stubSipServer import sipServer
from lmwsip.run import run from lmwsip.run import run
from datetime import datetime, timedelta from datetime import datetime, timedelta
from dateutil import tz from dateutil import tz

View File

@@ -3,4 +3,4 @@ envlist = py36,py37,py38,py310
[testenv] [testenv]
deps = python-dateutil deps = python-dateutil
commands = python -m unittest -v lmwsip.tests commands = python tests/main.py