~hristoast/mousikofidi

c22254d71fcdb2b08d3a0c47619221b05987a567 — Hristos N. Triantafillou 9 months ago 77a6a4c
A better title (#94)
2 files changed, 10 insertions(+), 10 deletions(-)

M mousikofidi/mousikofidi.py
M test_mousikofidi.py
M mousikofidi/mousikofidi.py => mousikofidi/mousikofidi.py +1 -1
@@ 1105,7 1105,7 @@ def internal_server_error(e):
@app.route("/")
def index():
    c = request_context(app.fidiConfig)
    c["page_name"] = "Welcome to {}!".format(c["site_name"])
    c["page_name"] = "Welcome"
    c["plists"] = get_playlists(c["playlist_dir"])
    return render_template("index.html", **c)


M test_mousikofidi.py => test_mousikofidi.py +9 -9
@@ 1421,7 1421,7 @@ def test_about(client):

def test_index_http_code(client):
    site_name = "COOL TEST SITE"
    page_name = "Welcome to {}!".format(site_name)
    page_name = "Welcome"
    title = '<title id="title" data-sitename="{s}">{p} | {s}</title>'.format(
        p=page_name, s=site_name
    )


@@ 1527,7 1527,7 @@ def test_index_with_playlists(client):
    assert rv.status == "200 OK"
    assert (
        bytes(
            '<title id="title" data-sitename="Pdir Test">Welcome to Pdir Test! | Pdir Test</title>',
            '<title id="title" data-sitename="Pdir Test">Welcome | Pdir Test</title>',
            "utf8",
        )
        in rv.data


@@ 1586,7 1586,7 @@ def test_index_no_playlists(client):
    assert rv.status == "200 OK"
    assert (
        bytes(
            '<title id="title" data-sitename="Pdir Test">Welcome to Pdir Test! | Pdir Test</title>',
            '<title id="title" data-sitename="Pdir Test">Welcome | Pdir Test</title>',
            "utf8",
        )
        in rv.data


@@ 1635,7 1635,7 @@ def test_index_no_playlists(client):

def test_index_dark_theme(client):
    site_name = "COOL TEST SITE"
    page_name = "Welcome to {}!".format(site_name)
    page_name = "Welcome"
    title = '<title id="title" data-sitename="{s}">{p} | {s}</title>'.format(
        p=page_name, s=site_name
    )


@@ 1668,7 1668,7 @@ def test_index_dark_theme(client):

def test_index_light_theme(client):
    site_name = "COOL TEST SITE"
    page_name = "Welcome to {}!".format(site_name)
    page_name = "Welcome"
    title = '<title id="title" data-sitename="{s}">{p} | {s}</title>'.format(
        p=page_name, s=site_name
    )


@@ 1701,7 1701,7 @@ def test_index_light_theme(client):

def test_index_nes_theme(client):
    site_name = "COOL TEST SITE"
    page_name = "Welcome to {}!".format(site_name)
    page_name = "Welcome"
    title = '<title id="title" data-sitename="{s}">{p} | {s}</title>'.format(
        p=page_name, s=site_name
    )


@@ 1732,7 1732,7 @@ def test_index_nes_theme(client):

def test_index_terminal_theme(client):
    site_name = "COOL TEST SITE"
    page_name = "Welcome to {}!".format(site_name)
    page_name = "Welcome"
    title = '<title id="title" data-sitename="{s}">{p} | {s}</title>'.format(
        p=page_name, s=site_name
    )


@@ 1764,7 1764,7 @@ def test_index_terminal_theme(client):

def test_index_terminal_green_theme(client):
    site_name = "COOL TEST SITE"
    page_name = "Welcome to {}!".format(site_name)
    page_name = "Welcome"
    title = '<title id="title" data-sitename="{s}">{p} | {s}</title>'.format(
        p=page_name, s=site_name
    )


@@ 1795,7 1795,7 @@ def test_index_terminal_green_theme(client):

def test_index_terminal_solarized_theme(client):
    site_name = "COOL TEST SITE"
    page_name = "Welcome to {}!".format(site_name)
    page_name = "Welcome"
    title = '<title id="title" data-sitename="{s}">{p} | {s}</title>'.format(
        p=page_name, s=site_name
    )