Add test framework
This commit is contained in:
44
test_tjnetwork.py
Normal file
44
test_tjnetwork.py
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
import pytest
|
||||||
|
from tjnetwork import *
|
||||||
|
|
||||||
|
class TestApi:
|
||||||
|
def enter(self, p):
|
||||||
|
if is_project_open(p):
|
||||||
|
close_project(p)
|
||||||
|
|
||||||
|
if have_project(p):
|
||||||
|
delete_project(p)
|
||||||
|
|
||||||
|
create_project(p)
|
||||||
|
open_project(p)
|
||||||
|
|
||||||
|
def leave(self, project):
|
||||||
|
close_project(p)
|
||||||
|
delete_project(p)
|
||||||
|
|
||||||
|
def test_title(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_junction(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_reservoir(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_tank(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_pipe(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_pump(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_valve(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_coordinate(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
pytest.main()
|
||||||
Reference in New Issue
Block a user