from django.test import TestCase from django.urls import reverse from bookmarks.tests.helpers import BookmarkFactoryMixin class CustomCssTestCase(TestCase, BookmarkFactoryMixin): def setUp(self): self.client.force_login(self.get_or_create_test_user()) def test_does_not_render_custom_style_tag_by_default(self): response = self.client.get(reverse("bookmarks:index")) self.assertNotContains(response, "")