From 7bf22c116a0acdcad6af216941ed95428f9df535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 22 Nov 2021 22:10:20 +0100 Subject: [PATCH] trivial: apply new black --- tests/test_as_opening_hours.py | 6 +++--- tests/test_get_mairie_opening_hours.py | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/test_as_opening_hours.py b/tests/test_as_opening_hours.py index 71b38d1..404ba6c 100644 --- a/tests/test_as_opening_hours.py +++ b/tests/test_as_opening_hours.py @@ -36,7 +36,7 @@ def test_all_mairie_data_parsed_correct(): @pytest.mark.freeze_time("2018-03-05 14:59:00") def test_empty_data(): - """"no data return the empty html""" + """ "no data return the empty html""" test_html = as_opening_hours_badge(GEOJSON[0]['properties']) assert test_html == '' @@ -279,7 +279,7 @@ def test_mairie_format_openinghoursspecification(day, opens, closes, badge, text @pytest.mark.freeze_time("2018-03-09 00:30:00") def test_mairie_having_both_formats(): - """ openinghoursspecification take preference over openinghours""" + """openinghoursspecification take preference over openinghours""" geojson = """ { "properties": { @@ -302,7 +302,7 @@ def test_mairie_having_both_formats(): @pytest.mark.freeze_time("2021-01-21 15:37:00") def test_mairie_saint_genis_lavak(): - """ #50337 """ + """#50337""" geojson = json.load(open(os.path.join(BASE_DIR, 'tests/data/mairie-saint-genis-lavak.json'))) test_html = as_opening_hours_badge(geojson['features'][0]) klass, label = 'open', u"Ouvert jusqu'à 17h30" diff --git a/tests/test_get_mairie_opening_hours.py b/tests/test_get_mairie_opening_hours.py index eebdd52..01810ef 100644 --- a/tests/test_get_mairie_opening_hours.py +++ b/tests/test_get_mairie_opening_hours.py @@ -20,7 +20,7 @@ def test_mairie_hours_parsing(): def test_mairie_hours_nodata(): - """"no data return nothing""" + """ "no data return nothing""" assert get_mairie_opening_hours(GEOJSON[0]['properties']) is None @@ -126,7 +126,7 @@ def test_mairie_saint_priest(): def test_mairie_format_openinghours(): - """ some mairie may still only define the openinghours format """ + """some mairie may still only define the openinghours format""" geojson = """ { "properties": { @@ -154,7 +154,7 @@ def test_mairie_format_openinghours(): @pytest.mark.freeze_time("2018-03-09 00:30:00") def test_mairie_format_openinghoursspecification(): - """ openinghoursspecification the default format """ + """openinghoursspecification the default format""" geojson = """ { "properties": { @@ -216,7 +216,7 @@ def test_mairie_format_openinghoursspecification(): @pytest.mark.freeze_time("2018-03-09 00:30:00") def test_mairie_having_both_formats(): - """ openinghoursspecification take preference over openinghours""" + """openinghoursspecification take preference over openinghours""" geojson = """ { "properties": { @@ -239,7 +239,7 @@ def test_mairie_having_both_formats(): @pytest.mark.freeze_time("2021-01-21 15:37:00") def test_mairie_saint_genis_lavak(): - """ #50337 """ + """#50337""" geojson = json.load(open(os.path.join(BASE_DIR, 'tests/data/mairie-saint-genis-lavak.json'))) test_time_table = get_mairie_opening_hours(geojson['features'][0]) assert test_time_table == [