test: satisfy lint in catalog override test
This commit is contained in:
1 parent
6b11d29919
commit
6c9b2b74ca
1 file changed
+2
-2
@@ -615,8 +615,8 @@ def test_post_annotation_overrides_in_the_real_catalog() -> None:
|
|||||||
|
|
||||||
def test_every_annotation_override_names_a_real_post_operation() -> None:
|
def test_every_annotation_override_names_a_real_post_operation() -> None:
|
||||||
posts = {op.operation_id for op in load_catalog().operations if op.method == "POST"}
|
posts = {op.operation_id for op in load_catalog().operations if op.method == "POST"}
|
||||||
assert READ_ONLY_POST_OPERATIONS <= posts
|
assert posts >= READ_ONLY_POST_OPERATIONS
|
||||||
assert DESTRUCTIVE_POST_OPERATIONS <= posts
|
assert posts >= DESTRUCTIVE_POST_OPERATIONS
|
||||||
assert not READ_ONLY_POST_OPERATIONS & DESTRUCTIVE_POST_OPERATIONS
|
assert not READ_ONLY_POST_OPERATIONS & DESTRUCTIVE_POST_OPERATIONS
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user