Commit f8b86d55 authored by Kirby Ezekiel Santos's avatar Kirby Ezekiel Santos

Added a test for home page to see if it displays css properties properly (for fun)

parent e269914b
......@@ -65,3 +65,10 @@ class OrdersCreatePageTest(TestCase):
def test_orders_create_page_returns_correct_html(self):
response = self.client.get('/orders-create')
self.assertTemplateUsed(response, 'orders_create_form.html')
class PageContainsCssTest(TestCase):
def test_home_page_contains_css(self):
response = self.client.get('')
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