45 lines
705 B
Python
45 lines
705 B
Python
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()
|