Add base api
This commit is contained in:
14
api/test.py
Normal file
14
api/test.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from _project import *
|
||||
from _0_base import *
|
||||
|
||||
open_project("net")
|
||||
add_node("net", "n-1", JUNCTION)
|
||||
if have_node("net", "n-1"):
|
||||
delete_node("net", "n-1")
|
||||
print(have_node("net", "n-1"))
|
||||
|
||||
open_project("net")
|
||||
add_link("net", "l-1", PIPE)
|
||||
if have_link("net", "l-1"):
|
||||
delete_link("net", "l-1")
|
||||
print(have_link("net", "l-1"))
|
||||
Reference in New Issue
Block a user