<commit_before><commit_msg>added tests for string name<commit_after>from django.core.management import setup_environ
from src import settings
setup_environ(settings)

from models import ShoppingList, Category, Dashboard, Product

from django.test import TestCase
import unittest

class ProductTest(unittest.TestCase):
    def setUp(self):
       self.product = Product()

    def testProduct(self):
        assert isinstance(self.product, Product)

    def testNameProduct(self):
        assert isinstance(str(self.product), str)
  
class ShoppingListTest(unittest.TestCase):
    def setUp(self):
       self.shoppingList = ShoppingList()

    def testShoppingList(self):
        assert isinstance(self.shoppingList, ShoppingList)

class CategoryTest(unittest.TestCase):
    def setUp(self):
        self.category = Category()

    def testCategory(self):
        assert isinstance(self.category, Category)

    def testNameCategory(self):
        assert isinstance(str(self.category), str)

class DashboardTest(unittest.TestCase):
    def setUp(self):
        self.dashboard = Dashboard()
        self.shoppingList = ShoppingList()

    def testDashboard(self):
        assert isinstance(self.dashboard, Dashboard)

    def testNameDashboard(self):
        assert isinstance(str(self.dashboard), str)
  
    def testCrSh(self):
        assert isinstance(self.dashboard.get_or_create_shopping_list(), ShoppingList)

class LocationTest(unittest.TestCase):
    def setUp(self):
        self.location = Location()
        assert isinstance(self.location.getLocation(), list)
 

        
{'fraction_non_alphanumeric': 0.0915982312065698, 'fraction_numerical': 0.0, 'mean_word_length': 3.7567567567567566, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2177936', 'n_tokens_mistral': 438, 'n_tokens_neox': 440, 'n_words': 101}