<commit_before>from flask.ext.testing import TestCase
from flask import current_app
from app import dbsql


class BasicsTestCase(TestCase):
    def setUp(self):
        # criamos o banco de dados relacional
        dbsql.create_all()

    def create_app(self):
        return current_app

    def tearDown(self):
        # apagamos o banco de dados relacional
        dbsql.session.remove()
        dbsql.drop_all()

    def test_app_exists(self):
        self.assertFalse(current_app is None)

    def test_app_is_testing(self):
        self.assertFalse(current_app.config['TESTING'])<commit_msg>arrumando o resultado dos ``make test`` para travis ver (parte 3 - final)<commit_after>from flask.ext.testing import TestCase
from flask import current_app
from app import dbsql


class BasicsTestCase(TestCase):
    def setUp(self):
        # criamos o banco de dados relacional
        dbsql.create_all()

    def create_app(self):
        return current_app

    def tearDown(self):
        # apagamos o banco de dados relacional
        dbsql.session.remove()
        dbsql.drop_all()

    def test_app_exists(self):
        self.assertFalse(current_app is None)

    def test_app_is_testing(self):
        self.assertTrue(current_app.config['TESTING'])
{'fraction_non_alphanumeric': 0.07901037509976057, 'fraction_numerical': 0.0007980845969672786, 'mean_word_length': 3.125, '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': '3582607', 'n_tokens_mistral': 398, 'n_tokens_neox': 382, 'n_words': 100}