first commit
This commit is contained in:
parent
033f6e0da7
commit
b90e997119
16 changed files with 621 additions and 0 deletions
11
tests/conftest.py
Normal file
11
tests/conftest.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Dummy conftest.py for fuel_price_tracker.
|
||||
|
||||
If you don't know what this is for, just leave it empty.
|
||||
Read more about conftest.py under:
|
||||
- https://docs.pytest.org/en/stable/fixture.html
|
||||
- https://docs.pytest.org/en/stable/writing_plugins.html
|
||||
"""
|
||||
|
||||
# import pytest
|
||||
17
tests/test_skeleton.py
Normal file
17
tests/test_skeleton.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import pytest
|
||||
|
||||
from fuel_price_tracker.skeleton import fib
|
||||
|
||||
__author__ = "Adrien Raison"
|
||||
__copyright__ = "Adrien Raison"
|
||||
__license__ = "mit"
|
||||
|
||||
|
||||
def test_fib():
|
||||
assert fib(1) == 1
|
||||
assert fib(2) == 1
|
||||
assert fib(7) == 13
|
||||
with pytest.raises(AssertionError):
|
||||
fib(-10)
|
||||
Loading…
Add table
Add a link
Reference in a new issue