diff options
-rw-r--r-- | libpathod/app.py | 2 | ||||
-rw-r--r-- | test/test_app.py | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libpathod/app.py b/libpathod/app.py index 0b123e94..c1fb670f 100644 --- a/libpathod/app.py +++ b/libpathod/app.py @@ -37,7 +37,7 @@ def render(s, **kwargs): @app.route('/index.html') def index(): return render("index.html", section="main") - j + @app.route('/about') @app.route('/about.html') diff --git a/test/test_app.py b/test/test_app.py index da6431c9..e7c1c085 100644 --- a/test/test_app.py +++ b/test/test_app.py @@ -7,6 +7,10 @@ class TestApp(tutils.DaemonTests): assert r.status_code == 200 assert r.content + def test_about(self): + r = self.getpath("/about") + assert r.ok + def test_docs(self): assert self.getpath("/docs/pathod").status_code == 200 assert self.getpath("/docs/pathoc").status_code == 200 |