robosats/tests/test_frontend_fetch.py

21 lines
676 B
Python
Raw Normal View History

2023-11-29 12:03:18 +00:00
from django.test import Client, TestCase
from django.urls import reverse
class FrontendFetchTest(TestCase):
def setUp(self):
self.client = Client()
def test_basic_frontend_url_content(self):
path = reverse("basic")
response = self.client.get(path)
self.assertContains(response, "<html>")
2024-09-17 15:28:48 +00:00
self.assertContains(response, "RoboSats -")
2024-09-18 06:52:08 +00:00
self.assertContains(response, "static/frontend/main.v")
2023-11-29 12:03:18 +00:00
def test_pro_frontend_url_content(self):
path = reverse("pro")
response = self.client.get(path)
self.assertContains(response, "<html>")
2024-09-18 06:52:08 +00:00
self.assertContains(response, "static/frontend/main.v")