From 5920259b863fdb0421301f212b448156c64a0bbb Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Fri, 12 Mar 2021 16:08:15 -0500 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=A5=E6=9C=9F=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=92=8C=20yaml=20=E6=96=87=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Json2Yaml.py | 2 +- tests/resources/black_rock_test.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Json2Yaml.py b/tests/Json2Yaml.py index 0862022..7aab081 100644 --- a/tests/Json2Yaml.py +++ b/tests/Json2Yaml.py @@ -34,4 +34,4 @@ with open(json_filename) as json_file: # Write to YAML with open(yaml_filename, 'w') as yaml_file: - yaml.dump(data, yaml_file, allow_unicode=True) + yaml.dump(data, yaml_file, allow_unicode=True, default_flow_style=False) diff --git a/tests/resources/black_rock_test.json b/tests/resources/black_rock_test.json index e26a7fc..672d7c2 100644 --- a/tests/resources/black_rock_test.json +++ b/tests/resources/black_rock_test.json @@ -1,5 +1,5 @@ { "first_name": "John", "last_name": "Doe", - "date_of_birth": "1/1/2021" + "date_of_birth": "1/1/1955" } \ No newline at end of file