Change nose to pytest

pull/78/head
Konstantin Gründger 2019-09-09 21:36:33 +02:00 zatwierdzone przez Meisterschueler
rodzic dedffb88e2
commit fc608cd6c8
3 zmienionych plików z 41 dodań i 24 usunięć

Wyświetl plik

@ -1,26 +1,30 @@
sudo: false
language: python
python:
- 3.5
- 3.6
- 3.7
- 3.8-dev
addons:
postgresql: "9.6"
apt:
packages:
- postgresql-9.6-postgis-2.4
install:
- pip install tox
before_script:
- flake8 tests ogn_test
- psql -U postgres -c 'CREATE DATABASE ogn_test;'
- psql -U postgres -c 'CREATE EXTENSION postgis;'
script:
- nosetests --with-coverage --cover-package=app
- pip install . --upgrade
- python -c 'import app'
- tox
addons:
postgresql: 9.6
apt:
packages:
- postgresql-9.6-postgis-2.4
matrix:
include:
- python: "3.6"
env: TOXENV='py36'
- python: "3.7"
env: TOXENV='py37'
- python: "3.7"
env: TOXENV='flake8'
after_success:
- coveralls
- tox -e codecov

Wyświetl plik

@ -51,13 +51,10 @@ setup(
'tqdm==4.36.1',
'requests==2.22.0',
],
extras_require={
'dev': [
'nose==1.3.7',
'coveralls==1.8.2',
'flake8==3.7.8',
'xmlunittest==0.4.0'
]
},
test_require=[
'pytest==5.0.1',
'flake8==1.1.1',
'xmlunittest==0.4.0',
],
zip_safe=False
)

16
tox.ini 100644
Wyświetl plik

@ -0,0 +1,16 @@
[tox]
envlist = py36,py37,flake8
[testenv]
setenv = OGN_CONFIG_MODULE = 'config/test.py'
deps = pytest
commands =
pytest
[testenv:flake8]
deps =
flake8
commands =
flake8 app tests