mirror of
https://github.com/KevinMidboe/knowit_julekalender-2017.git
synced 2025-10-29 17:50:18 +00:00
Added testing with pytest and support for travis ci. Also added requirements file.
This commit is contained in:
7
.travis.yml
Normal file
7
.travis.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
language: python
|
||||
python:
|
||||
- 3.6
|
||||
install:
|
||||
- pip install -r requirements.txt
|
||||
|
||||
script: pytest
|
||||
2
pytest.ini
Normal file
2
pytest.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[pytest]
|
||||
python_files = tests.py test_*.py
|
||||
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
pytest>=3.3.1
|
||||
1
tests/__init__.py
Normal file
1
tests/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
6
tests/test_luke01.py
Normal file
6
tests/test_luke01.py
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env python3.6
|
||||
|
||||
from luke_01.bigram_trigram import main
|
||||
|
||||
def test_answer():
|
||||
assert '5-reasserts' in main()
|
||||
2
tests/test_luke02.py
Normal file
2
tests/test_luke02.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def test_answer():
|
||||
assert False
|
||||
2
tests/test_luke03.py
Normal file
2
tests/test_luke03.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def test_answer():
|
||||
assert False
|
||||
6
tests/test_luke04.py
Normal file
6
tests/test_luke04.py
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env python3.6
|
||||
|
||||
from luke_04.not_pal_but_an import main
|
||||
|
||||
def test_answer():
|
||||
assert main() == 111
|
||||
6
tests/test_luke05.py
Normal file
6
tests/test_luke05.py
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env python3.6
|
||||
|
||||
from luke_05.gullrekka import main
|
||||
|
||||
def test_answer():
|
||||
assert main() == 3792638403
|
||||
4
tests/test_luke06.py
Normal file
4
tests/test_luke06.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from luke_06.lightning_mc_queen import main
|
||||
|
||||
def test_answer():
|
||||
assert main() == 53
|
||||
2
tests/test_luke07.py
Normal file
2
tests/test_luke07.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def test_answer():
|
||||
assert True
|
||||
2
tests/test_luke08.py
Normal file
2
tests/test_luke08.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def test_answer():
|
||||
assert False
|
||||
2
tests/test_luke09.py
Normal file
2
tests/test_luke09.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def test_answer():
|
||||
assert False
|
||||
2
tests/test_luke10.py
Normal file
2
tests/test_luke10.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def test_answer():
|
||||
assert False
|
||||
2
tests/test_luke11.py
Normal file
2
tests/test_luke11.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def test_answer():
|
||||
assert False
|
||||
2
tests/test_luke12.py
Normal file
2
tests/test_luke12.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def test_answer():
|
||||
assert False
|
||||
2
tests/test_luke13.py
Normal file
2
tests/test_luke13.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def test_answer():
|
||||
assert False
|
||||
2
tests/test_luke14.py
Normal file
2
tests/test_luke14.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def test_answer():
|
||||
assert False
|
||||
2
tests/test_luke15.py
Normal file
2
tests/test_luke15.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def test_answer():
|
||||
assert False
|
||||
6
tests/test_luke16.py
Normal file
6
tests/test_luke16.py
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env python3.6
|
||||
|
||||
from luke_16.grinchen import main
|
||||
|
||||
def test_answer():
|
||||
assert main() == 10553
|
||||
2
tests/test_luke17.py
Normal file
2
tests/test_luke17.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def test_answer():
|
||||
assert False
|
||||
2
tests/test_luke18.py
Normal file
2
tests/test_luke18.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def test_answer():
|
||||
assert False
|
||||
2
tests/test_luke19.py
Normal file
2
tests/test_luke19.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def test_answer():
|
||||
assert False
|
||||
2
tests/test_luke20.py
Normal file
2
tests/test_luke20.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def test_answer():
|
||||
assert False
|
||||
2
tests/test_luke21.py
Normal file
2
tests/test_luke21.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def test_answer():
|
||||
assert False
|
||||
2
tests/test_luke22.py
Normal file
2
tests/test_luke22.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def test_answer():
|
||||
assert False
|
||||
2
tests/test_luke23.py
Normal file
2
tests/test_luke23.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def test_answer():
|
||||
assert False
|
||||
2
tests/test_luke24.py
Normal file
2
tests/test_luke24.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def test_answer():
|
||||
assert False
|
||||
Reference in New Issue
Block a user