Skip to content

Commit

Permalink
Se agrego una comprobación.
Browse files Browse the repository at this point in the history
  • Loading branch information
nehuenpereyra committed Aug 3, 2021
1 parent c16183e commit 205c630
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import unittest

from app import create_app
from app.db import db


class BaseTestClass(unittest.TestCase):
def setUp(self):
def setUp(self):
self.app = create_app()
if self.app.config['DB_NAME'] != "grupo20_test":
self.fail("Configure la base de dato de test con el nombre 'grupo20_test'.")
with self.app.app_context():
self.init_db()

Expand Down

0 comments on commit 205c630

Please sign in to comment.