<commit_before>from django.test import TestCase, Client, RequestFactory
from django.contrib.auth.models import User

class EmptySmokeTest(TestCase):

    def setUp(self):
        self.client = Client()
        self.username = 'test'
        self.email = '<EMAIL>'
        self.password = '<PASSWORD>'
        self.test_user = User.objects.create_superuser(self.username, self.email, self.password)
        login = self.client.login(username=self.username, password=self.password)
        self.assertEqual(login, True)

    def test_aggregatesurveydatajsonview(self):
        response = self.client.get('/dashboard/aggregatesurveydatajsonview/')
        self.assertEqual(response.status_code, 200)

    def test_teamsjsonview(self):
        response = self.client.get('/dashboard/teamsjsonview/')
        self.assertEqual(response.status_code, 200)

    def test_alerts(self):
        response = self.client.get('/dashboard/alerts/')
        self.assertEqual(response.status_code, 200)

<commit_msg>test more empty endpoints<commit_after>from django.test import TestCase, Client, RequestFactory
from django.contrib.auth.models import User

class EmptySmokeTest(TestCase):

    def setUp(self):
        self.client = Client()
        self.username = 'test'
        self.email = '<EMAIL>'
        self.password = '<PASSWORD>'
        self.test_user = User.objects.create_superuser(self.username, self.email, self.password)
        login = self.client.login(username=self.username, password=self.password)
        self.assertEqual(login, True)

    def _test_empty_200(self, url):
        response = self.client.get(url)
        self.assertEqual(response.status_code, 200)

    def test_empty_200_aggregatesurveydatajsonview(self):
        self._test_empty_200('/dashboard/aggregatesurveydatajsonview/')

    def test_empty_200_teamsjsonview(self):
        self._test_empty_200('/dashboard/teamsjsonview/')

    def test_empty_200_alerts(self):
        self._test_empty_200('/dashboard/alerts/')

    def test_empty_200_surveys(self):
        self._test_empty_200('/dashboard/surveys/')

    def test_empty_200_teammembers(self):
        self._test_empty_200('/dashboard/teammembers/')

{'fraction_non_alphanumeric': 0.11136571952337306, 'fraction_numerical': 0.020623281393217233, 'mean_word_length': 3.55741127348643, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4090825', 'n_tokens_mistral': 693, 'n_tokens_neox': 652, 'n_words': 105}