trivial: apply new black
This commit is contained in:
parent
568d853d60
commit
7bf22c116a
|
@ -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"
|
||||
|
|
|
@ -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 == [
|
||||
|
|
Loading…
Reference in New Issue