From c6132537b86e757e4f458de54dea71712cd2b5f4 Mon Sep 17 00:00:00 2001 From: Michael Chisholm Date: Wed, 26 Jun 2019 17:17:16 -0400 Subject: [PATCH] Changes from add-trailing-comma hook --- stix2/test/v21/test_malware_analysis.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/stix2/test/v21/test_malware_analysis.py b/stix2/test/v21/test_malware_analysis.py index 5192317..42db919 100644 --- a/stix2/test/v21/test_malware_analysis.py +++ b/stix2/test/v21/test_malware_analysis.py @@ -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", )