<commit_before>from flask_testing import TestCase
from shopping_app import app


class ShoppingAppTest(TestCase):

    """This TestCase will test various functionalities of the application"""
    def create_app(self):
        app.config['TESTING'] = True
        return app

    #----------Templated-------------#

    def test_index_template(self):
        """
        test whether the index.html template is the one used
        :return: True, False
        """
        app.test_client().get('/')
        self.assert_template_used('index.html')

    def test_login_template(self):
        """
        test whether the login.html template is the one used
        :return: True, False
        """
        app.test_client().get('/login')
        self.assert_template_used('login.html')

    def test_dashboard_template(self):
        """
        test whether the index.html template is the one used
        :return: True, False
        """
        app.test_client().get('/dashboard')
        self.assert_template_used('dashboard.html')


<commit_msg>Added more tests<commit_after>from flask_testing import TestCase
from shopping_app import app


class ShoppingAppTest(TestCase):

    """This TestCase will test various functionalities of the application"""
    def create_app(self):
        app.config['TESTING'] = True
        return app

    # ----------TemplatesTest------------- #

    def test_index_template(self):
        """
        test whether the index.html template is the one used
        :return: True, False
        """
        app.test_client().get('/')
        self.assert_template_used('index.html')

    def test_login_template(self):
        """
        test whether the login.html template is the one used
        :return: True, False
        """
        app.test_client().get('/login')
        self.assert_template_used('login.html')

    def test_dashboard_template(self):
        """
        test whether the index.html template is the one used
        :return: True, False
        """
        app.test_client().get('/dashboard')
        self.assert_template_used('dashboard.html')

    def test_register_template(self):
        """
        test whether the register.html template is the one used
        :return: True, False
        """
        app.test_client().get('/register')
        self.assert_template_used('dashboard.html')



{'fraction_non_alphanumeric': 0.12213740458015267, 'fraction_numerical': 0.0, 'mean_word_length': 2.303921568627451, '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': '7278363', 'n_tokens_mistral': 630, 'n_tokens_neox': 618, 'n_words': 166}