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:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -7,3 +7,6 @@
|
||||
.dockerfile
|
||||
*.swp
|
||||
Dockerfile
|
||||
/tests/integration/MANIFEST
|
||||
/tests/integration/.venv
|
||||
/tests/integration/.tox
|
||||
|
1
tests/integration/README.txt
Normal file
1
tests/integration/README.txt
Normal file
@@ -0,0 +1 @@
|
||||
RancherOS Integration Tests
|
6
tests/integration/rancherostest/test_sample.py
Normal file
6
tests/integration/rancherostest/test_sample.py
Normal file
@@ -0,0 +1,6 @@
|
||||
def func(x):
|
||||
return x + 1
|
||||
|
||||
|
||||
def test_answer():
|
||||
assert func(3) == 4
|
4
tests/integration/requirements.txt
Normal file
4
tests/integration/requirements.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
flake8==2.4.0
|
||||
pytest==2.7.0
|
||||
tox==1.9.2
|
||||
virtualenv==12.1.1
|
11
tests/integration/setup.py
Normal file
11
tests/integration/setup.py
Normal 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
12
tests/integration/tox.ini
Normal 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
|
Reference in New Issue
Block a user