Skip to content

Commit c3c038f

Browse files
author
Steven Mazliach
committed
testing out pytest & travisCI
1 parent 3f94336 commit c3c038f

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ python: "2.7"
33
# command to install dependencies
44
install: "pip install -r requirements.txt"
55
# command to run tests
6-
#script: pytest
6+
script: pytest Testing/test_sample.py

Testing/test_sample.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# content of test_sample.py
2+
def func(x):
3+
return x + 1
4+
5+
def test_answer():
6+
assert func(3) == 4

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
psycopg2==2.6.2
2+
py==1.4.31
23
pyDAL==16.9
4+
pytest==3.0.4
35
requests==2.12.1
46
stripe==1.41.1

0 commit comments

Comments
 (0)