1
0
mirror of https://github.com/rancher/os.git synced 2025-09-02 15:24:32 +00:00

py.test module: integration

This commit is contained in:
Ivan Mikushin
2015-05-06 18:23:16 +05:00
parent 028b274dcd
commit ece34c7a3d
6 changed files with 37 additions and 0 deletions

3
.gitignore vendored
View File

@@ -7,3 +7,6 @@
.dockerfile
*.swp
Dockerfile
/tests/integration/MANIFEST
/tests/integration/.venv
/tests/integration/.tox

View File

@@ -0,0 +1 @@
RancherOS Integration Tests

View File

@@ -0,0 +1,6 @@
def func(x):
return x + 1
def test_answer():
assert func(3) == 4

View File

@@ -0,0 +1,4 @@
flake8==2.4.0
pytest==2.7.0
tox==1.9.2
virtualenv==12.1.1

View File

@@ -0,0 +1,11 @@
from distutils.core import setup
setup(
name='RancherOSIntegrationTests',
version='0.1',
packages=[
'rancherostest'
],
license='ASL 2.0',
long_description=open('README.txt').read(),
)

12
tests/integration/tox.ini Normal file
View File

@@ -0,0 +1,12 @@
[tox]
envlist=flake8, py27
[testenv]
deps=-rrequirements.txt
changedir={toxinidir}
commands=py.test --durations=20 {posargs}
[testenv:flake8]
deps=-rrequirements.txt
changedir={toxinidir}
commands=flake8 rancherostest