From 18ae27cd9cb9d59f89de6a75be0a37c5876acba8 Mon Sep 17 00:00:00 2001 From: Ksenia Berezina Date: Thu, 23 Jan 2020 13:04:35 -0500 Subject: [PATCH] Issue #3165 - Create Terms of Service page --- tests/unit/test_rendering.py | 1 + tests/unit/test_urls.py | 5 +++ webcompat/templates/shared/footer.html | 5 +++ webcompat/templates/terms.html | 62 ++++++++++++++++++++++++++ webcompat/views.py | 9 ++++ 5 files changed, 82 insertions(+) create mode 100644 webcompat/templates/terms.html diff --git a/tests/unit/test_rendering.py b/tests/unit/test_rendering.py index c56819171..a2ae488e6 100644 --- a/tests/unit/test_rendering.py +++ b/tests/unit/test_rendering.py @@ -54,6 +54,7 @@ def test_titles(self): ('/issues', 'Issues'), ('issues/new', 'New Issue'), ('/privacy', 'Privacy Policy'), + ('/terms', 'Terms of Service'), ('/404', default_title) ] with webcompat.app.app_context(): diff --git a/tests/unit/test_urls.py b/tests/unit/test_urls.py index 31d7a3a1d..295798939 100644 --- a/tests/unit/test_urls.py +++ b/tests/unit/test_urls.py @@ -123,6 +123,11 @@ def test_privacy(self): rv = self.app.get('/privacy') self.assertEqual(rv.status_code, 200) + def test_terms(self): + """Test that /terms exists.""" + rv = self.app.get('/terms') + self.assertEqual(rv.status_code, 200) + def test_contributors(self): """Test that /contributors exists.""" rv = self.app.get('/contributors') diff --git a/webcompat/templates/shared/footer.html b/webcompat/templates/shared/footer.html index d2ef59b2a..5dd304c3b 100644 --- a/webcompat/templates/shared/footer.html +++ b/webcompat/templates/shared/footer.html @@ -31,6 +31,11 @@ Privacy Policy +