<commit_before># -*- coding: utf-8 -*-
import unittest

from django.conf import settings
from django.test import client

from .. import processors


class ProcessorsTestCase(unittest.TestCase):

    def setUp(self):
        factory = client.RequestFactory()
        self.request = factory.get("/")

    def test_deve_retornar_dicionario_com_BASE_URL(self):
        esperado = {u"BASE_URL": settings.BASE_URL}
        self.assertEquals(esperado, processors.get_base_url(self.request))

    def test_deve_estar_registrado_nos_CONTEXT_PROCESSORS(self):
        self.assertIn("core.processors.get_base_url", settings.TEMPLATE_CONTEXT_PROCESSORS)<commit_msg>core: corrigindo teste<commit_after># -*- coding: utf-8 -*-
import unittest

from django.conf import settings
from django.test import client

from .. import processors


class ProcessorsTestCase(unittest.TestCase):

    def setUp(self):
        factory = client.RequestFactory()
        self.request = factory.get("/")

    def test_deve_retornar_dicionario_com_BASE_URL(self):
        esperado = {u"BASE_URL": settings.BASE_URL}
        self.assertEquals(esperado, processors.get_base_url(self.request))

    def test_deve_estar_registrado_nos_CONTEXT_PROCESSORS(self):
        self.assertIn("devincachu.core.processors.get_base_url", settings.TEMPLATE_CONTEXT_PROCESSORS)
{'fraction_non_alphanumeric': 0.09954751131221719, 'fraction_numerical': 0.0015082956259426848, 'mean_word_length': 4.394308943089431, 'pattern_counts': {'":': 2, '<': 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': '3292896', 'n_tokens_mistral': 424, 'n_tokens_neox': 418, 'n_words': 71}