From f86b6e8a662903b087596fc21344f77b71f477bc Mon Sep 17 00:00:00 2001 From: Michael Chisholm Date: Fri, 7 Feb 2020 19:15:59 -0500 Subject: [PATCH] More add-trailing-comma junk, which is not done by the python 3.8 pre-commit add-trailing-comma library. Hopefully this satisfies the travis tests for other versions of python! --- stix2/test/test_spec_version_detect.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/stix2/test/test_spec_version_detect.py b/stix2/test/test_spec_version_detect.py index bd0e80c..d2a9da8 100644 --- a/stix2/test/test_spec_version_detect.py +++ b/stix2/test/test_spec_version_detect.py @@ -17,7 +17,7 @@ from stix2.core import _detect_spec_version "name": "alice", "identity_class": "individual", }, - "v20" + "v20", ), ( { @@ -29,14 +29,14 @@ from stix2.core import _detect_spec_version "target_ref": "identity--ba18dde2-56d3-4a34-aa0b-fc56f5be568f", "relationship_type": "targets", }, - "v20" + "v20", ), ( { "type": "file", "name": "notes.txt", }, - "v20" + "v20", ), ( { @@ -48,7 +48,7 @@ from stix2.core import _detect_spec_version "statement": "Copyright (c) ACME Corp.", }, }, - "v20" + "v20", ), ( { @@ -75,7 +75,7 @@ from stix2.core import _detect_spec_version }, ], }, - "v20" + "v20", ), # STIX 2.1 examples ( @@ -87,7 +87,7 @@ from stix2.core import _detect_spec_version "modified": "2001-07-01T09:33:17.000Z", "name": "alice", }, - "v21" + "v21", ), ( { @@ -100,7 +100,7 @@ from stix2.core import _detect_spec_version "target_ref": "identity--ba18dde2-56d3-4a34-aa0b-fc56f5be568f", "relationship_type": "targets", }, - "v21" + "v21", ), ( { @@ -109,7 +109,7 @@ from stix2.core import _detect_spec_version "spec_version": "2.1", "name": "notes.txt", }, - "v21" + "v21", ), ( { @@ -117,7 +117,7 @@ from stix2.core import _detect_spec_version "id": "file--5eef3404-6a94-4db3-9a1a-5684cbea0dfe", "name": "notes.txt", }, - "v21" + "v21", ), ( { @@ -131,7 +131,7 @@ from stix2.core import _detect_spec_version "tlp": "green", }, }, - "v21" + "v21", ), ( { @@ -153,7 +153,7 @@ from stix2.core import _detect_spec_version }, ], }, - "v21" + "v21", ), # Mixed spec examples ( @@ -180,7 +180,7 @@ from stix2.core import _detect_spec_version }, ], }, - "v21" + "v21", ), ( { @@ -202,7 +202,7 @@ from stix2.core import _detect_spec_version }, ], }, - "v21" + "v21", ), ], )