aboutsummaryrefslogtreecommitdiff
path: root/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests.py')
-rwxr-xr-xtests.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests.py b/tests.py
index 384c304..533d2c2 100755
--- a/tests.py
+++ b/tests.py
@@ -30,6 +30,17 @@ def test_html_get_post():
assert "Debugging CGI / CGit" not in text
+def test_html_get_base_url():
+ url = BASE_URL
+ r = requests.get(url)
+ assert r.status_code == 200
+ text = r.text
+ assert "A Solid Breakdown of the Linux Font Rendering Stack" in text
+ assert "hinting and anti-aliasing" in text
+
+ assert "Debugging CGI / CGit" in text
+
+
def test_html_get_posts():
url = f"{BASE_URL}/posts"
r = requests.get(url)
@@ -99,7 +110,6 @@ def test_json_get_post_not_found():
assert "Resource not found" in j
-
def main():
for func in dir(sys.modules[__name__]):
if func.startswith("test_"):