Changes from add-trailing-comma hook

master
Michael Chisholm 2019-06-26 17:17:16 -04:00
parent 68f93f4110
commit c6132537b8
1 changed files with 8 additions and 6 deletions

View File

@ -1,11 +1,11 @@
import json
import pytest
import stix2.exceptions
import stix2.utils
import stix2.v21
MALWARE_ANALYSIS_JSON = """{
"type": "malware-analysis",
"spec_version": "2.1",
@ -49,10 +49,12 @@ def test_malware_analysis_example():
assert str(ma) == MALWARE_ANALYSIS_JSON
@pytest.mark.parametrize("data", [
MALWARE_ANALYSIS_JSON,
MALWARE_ANALYSIS_DICT
])
@pytest.mark.parametrize(
"data", [
MALWARE_ANALYSIS_JSON,
MALWARE_ANALYSIS_DICT,
],
)
def test_parse_malware_analysis(data):
ma = stix2.parse(data, version="2.1")
@ -76,5 +78,5 @@ def test_parse_malware_analysis(data):
def test_malware_analysis_constraint():
with pytest.raises(stix2.exceptions.AtLeastOnePropertyError):
stix2.v21.MalwareAnalysis(
product="Acme Malware Analyzer"
product="Acme Malware Analyzer",
)