Skip to content

Commit

Permalink
clean: apply suggestions from black.
Browse files Browse the repository at this point in the history
  • Loading branch information
wf001 committed Nov 23, 2022
1 parent 0aa67df commit c5c7e6b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/test_former.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# fmt: off
import datetime
import json
import os
Expand Down Expand Up @@ -28,7 +29,8 @@

TESTSETS_WITHARGS = [
# src_format, target_format, src_path, target_format_loader, in_opt, out_opt
(Json, Yaml, JSON_FILE_PATH, yaml.safe_load, {"parse_int": float}, {"indent": 2}),
(Json, Yaml, JSON_FILE_PATH, yaml.safe_load,
{"parse_int": float}, {"indent": 2}),
(Json, Toml, JSON_FILE_PATH, toml.loads, {"parse_int": float}, None),
(Yaml, Json, YAML_FILE_PATH, json.loads, None, {"indent": 2}),
# (Yaml, Toml, YAML_FILE_PATH, toml.loads, None, None), #skip as is redundant
Expand Down Expand Up @@ -191,11 +193,14 @@ def test_form_file_to_file_with_opt(

XML_TESTSETS_WITHARGS = [
# src_format, target_format, src_path, target_format_loader, in_opt, out_opt
(Json, Xml, JSON_FILE_PATH, xml.parse, {"parse_int": int}, {"pretty": True}),
(Xml, Json, XML_FILE_PATH, json.loads, {"disable_entities": True}, {"indent": 2}),
(Json, Xml, JSON_FILE_PATH, xml.parse,
{"parse_int": int}, {"pretty": True}),
(Xml, Json, XML_FILE_PATH, json.loads, {
"disable_entities": True}, {"indent": 2}),
(Yaml, Xml, YAML_FILE_PATH, xml.parse, None, {"pretty": True}),
# (Yaml, Toml, YAML_FILE_PATH, toml.loads, None, None), #skip as is redundant
(Xml, Yaml, XML_FILE_PATH, yaml.safe_load, {"disable_entities": True}, None),
(Xml, Yaml, XML_FILE_PATH, yaml.safe_load,
{"disable_entities": True}, None),
# (Toml, Yaml, TOML_FILE_PATH, yaml.safe_load, None, None), #skip as is redundant
(Yaml, Xml, YAML_FILE_PATH, xml.parse, None, {"pretty": True}),
]
Expand Down

0 comments on commit c5c7e6b

Please sign in to comment.