Changes from the add-trailing-comma pre-commit hook

master
Michael Chisholm 2019-06-12 14:49:34 -04:00
parent caa1d45ae2
commit 4f593e6d16
2 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@ def test_course_of_action_example():
description="This is how to add a filter rule to block inbound access to TCP port 80 to the existing UDP 1434 filter ...",
action_type="textual:text/plain",
os_execution_envs=["a", "b", "c"],
action_bin="aGVsbG8gd29ybGQ="
action_bin="aGVsbG8gd29ybGQ=",
)
assert str(coa) == EXPECTED
@ -57,7 +57,7 @@ def test_course_of_action_example():
"type": "course-of-action",
"action_type": "textual:text/plain",
"os_execution_envs": ["a", "b", "c"],
"action_bin": "aGVsbG8gd29ybGQ="
"action_bin": "aGVsbG8gd29ybGQ=",
},
],
)
@ -84,8 +84,8 @@ def test_course_of_action_constraint():
action_bin="aGVsbG8gd29ybGQ=",
action_reference=stix2.v21.ExternalReference(
source_name="a source",
description="description of a source"
)
description="description of a source",
),
)
# TODO: Add other examples

View File

@ -115,7 +115,7 @@ class CourseOfAction(STIXDomainObject):
self._check_mutually_exclusive_properties(
["action_bin", "action_reference"],
at_least_one=False
at_least_one=False,
)