Moved tests out to root directory.

This commit is contained in:
2020-02-23 19:02:35 +01:00
parent a7f8a32b44
commit bea2a445b2
4 changed files with 0 additions and 0 deletions

2
test/__init__.py Normal file
View File

@@ -0,0 +1,2 @@
import sys, os
sys.path.append(os.path.realpath(os.path.dirname(__file__)+"/.."))

0
test/templates/test Normal file
View File

5
test/test_import.py Normal file
View File

@@ -0,0 +1,5 @@
import sys, os
def test_import_env_variables():
import env_variables as env
assert env.logfile == 'conf/output.log'

9
test/test_square.py Normal file
View File

@@ -0,0 +1,9 @@
def square(x):
return x * x
def test_square():
assert square(2) == 4
def test_square_negative():
assert square(-2) == 4