test_icons_markup.py 673 B

123456789101112131415161718192021
  1. from ...test import assert_contains
  2. def test_favicon_html_is_present_in_html_if_set(client, favicon):
  3. response = client.get("/")
  4. assert_contains(response, favicon.image.url)
  5. def test_favicon_32_html_is_present_in_html_if_set(client, favicon_32):
  6. response = client.get("/")
  7. assert_contains(response, favicon_32.image.url)
  8. def test_favicon_16_html_is_present_in_html_if_set(client, favicon_16):
  9. response = client.get("/")
  10. assert_contains(response, favicon_16.image.url)
  11. def test_apple_touch_icon_html_is_present_in_html_if_set(client, apple_touch_icon):
  12. response = client.get("/")
  13. assert_contains(response, apple_touch_icon.image.url)