Configure tests as a module.

communication
junos 2020-12-31 11:50:57 +01:00
parent 6dcb0daae7
commit 30bae2c1f9
5 changed files with 8 additions and 2 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/.env /.env
/config/.ipynb_checkpoints/

View File

@ -2,7 +2,7 @@
<module type="PYTHON_MODULE" version="4"> <module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager"> <component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" /> <content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" /> <orderEntry type="jdk" jdkName="Python 3.9 (straw2analysis)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
</component> </component>
</module> </module>

4
test/__init__.py 100644
View File

@ -0,0 +1,4 @@
from unittest import main
if __name__ == "__main__":
main(module="test", verbosity=2)

View File

@ -1,5 +1,6 @@
import unittest
import os import os
import unittest
from dotenv import load_dotenv from dotenv import load_dotenv
load_dotenv() load_dotenv()