mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
initial commit
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
.pytest_cache
|
||||||
|
.vscode
|
||||||
1
.python-version
Normal file
1
.python-version
Normal file
@@ -0,0 +1 @@
|
|||||||
|
bonob
|
||||||
0
bonob/bonob.py
Normal file
0
bonob/bonob.py
Normal file
3
requirements.txt
Normal file
3
requirements.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
pytest==5.0.1
|
||||||
|
|
||||||
|
|
||||||
6
tests/context.py
Normal file
6
tests/context.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import os
|
||||||
|
import sys
|
||||||
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
||||||
|
|
||||||
|
import sample
|
||||||
|
|
||||||
10
tests/test_one.py
Normal file
10
tests/test_one.py
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#from context import bonob
|
||||||
|
|
||||||
|
|
||||||
|
# content of test_sample.py
|
||||||
|
def f(x):
|
||||||
|
return x + 1
|
||||||
|
|
||||||
|
def test_answer():
|
||||||
|
assert f(4) == 5
|
||||||
|
|
||||||
Reference in New Issue
Block a user