diff options
author | Julian Berman <Julian@GrayVines.com> | 2021-08-04 10:29:44 +0100 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2021-08-04 10:29:44 +0100 |
commit | e908b8055596329f0b4ba1bc0dc1c793b437299f (patch) | |
tree | cb2bb0a41b6b8b8b26715e17bcdc944a676e29a1 /jsonschema/tests/test_cli.py | |
parent | 39697cda809169cf7031839bb0174b5d8136029e (diff) | |
download | jsonschema-draft2020-12.tar.gz |
Fix missing trailing commas.draft2020-12
Add flake8-commas to ensure this stays the case.
Diffstat (limited to 'jsonschema/tests/test_cli.py')
-rw-r--r-- | jsonschema/tests/test_cli.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/jsonschema/tests/test_cli.py b/jsonschema/tests/test_cli.py index ae4f13d..fa29b48 100644 --- a/jsonschema/tests/test_cli.py +++ b/jsonschema/tests/test_cli.py @@ -59,7 +59,7 @@ def _message_for(non_json): class TestCLI(TestCase): def run_cli( - self, argv, files={}, stdin=StringIO(), exit_code=0, **override + self, argv, files={}, stdin=StringIO(), exit_code=0, **override, ): arguments = cli.parse_args(argv) arguments.update(override) @@ -134,7 +134,7 @@ class TestCLI(TestCase): I am an error! ----------------------------- """, - ), + ) def test_invalid_instance_explicit_plain_output(self): error = ValidationError("I am an error!", instance=12) @@ -835,7 +835,7 @@ class TestParser(TestCase): "jsonschema.tests.test_cli.TestParser.FakeValidator", "--instance", "mem://some/instance", "mem://some/schema", - ] + ], ) self.assertIs(arguments["validator"], self.FakeValidator) @@ -845,7 +845,7 @@ class TestParser(TestCase): "--validator", "Draft4Validator", "--instance", "mem://some/instance", "mem://some/schema", - ] + ], ) self.assertIs(arguments["validator"], Draft4Validator) @@ -857,7 +857,7 @@ class TestParser(TestCase): [ "--output", "foo", "mem://some/schema", - ] + ], ) self.assertIn("invalid choice: 'foo'", stderr.getvalue()) self.assertFalse(stdout.getvalue()) @@ -871,7 +871,7 @@ class TestParser(TestCase): "--output", "pretty", "--error-format", "foo", "mem://some/schema", - ] + ], ) self.assertIn( "--error-format can only be used with --output plain", |