Commit 99a9759f authored by Kirby Ezekiel Santos's avatar Kirby Ezekiel Santos

Added a test for checking if ingredients update contains css

parent 8c5c5705
...@@ -84,3 +84,9 @@ class PageContainsCssTest(TestCase): ...@@ -84,3 +84,9 @@ class PageContainsCssTest(TestCase):
html = response.content.decode('utf8') html = response.content.decode('utf8')
self.assertIn('<link rel="stylesheet" href="/static/bootstrap.min.css">', html) self.assertIn('<link rel="stylesheet" href="/static/bootstrap.min.css">', html)
self.assertIn('<link rel="stylesheet" href="/static/styles.css">', html) self.assertIn('<link rel="stylesheet" href="/static/styles.css">', html)
def test_ingredients_update_contains_css(self):
response = self.client.get('/ingredients-update')
html = response.content.decode('utf8')
self.assertIn('<link rel="stylesheet" href="/static/bootstrap.min.css">', html)
self.assertIn('<link rel="stylesheet" href="/static/styles.css">', html)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment