Add curve test

This commit is contained in:
WQY\qiong
2023-03-22 21:17:46 +08:00
parent 4c4a03fcb0
commit 19a5b860b6

View File

@@ -2011,6 +2011,8 @@ class TestApi:
assert is_curve(p, 'c0') == False
assert get_curve(p, 'c0') == {}
add_curve(p, ChangeSet({'id' : 'c0', 'c_type' : CURVE_TYPE_PUMP, 'coords': [{'x': 1.0, 'y': 2.0}, {'x': 2.0, 'y': 1.0}]}))
assert is_curve(p, 'c0')
@@ -2047,6 +2049,8 @@ class TestApi:
assert is_curve(p, 'c0') == False
assert get_curve(p, 'c0') == {}
self.leave(p)