first commit

This commit is contained in:
Adrien 2021-02-09 09:20:51 +01:00
parent 033f6e0da7
commit b90e997119
16 changed files with 621 additions and 0 deletions

11
tests/conftest.py Normal file
View 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
View 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)