Guard pattern and curve

This commit is contained in:
WQY\qiong
2023-03-22 21:16:50 +08:00
parent 7a2a52b920
commit 4c4a03fcb0
3 changed files with 34 additions and 1 deletions

View File

@@ -1850,6 +1850,8 @@ class TestApi:
assert is_pattern(p, 'p0') == False
assert get_pattern(p, 'p0') == {}
add_pattern(p, ChangeSet({'id' : 'p0', 'factors': [1.0, 2.0, 3.0]}))
assert is_pattern(p, 'p0')
@@ -1874,6 +1876,8 @@ class TestApi:
delete_pattern(p, ChangeSet({'id' : 'p0'}))
assert is_pattern(p, 'p0') == False
assert get_pattern(p, 'p0') == {}
self.leave(p)