import unittest import json import uuid from http import HTTPStatus from unittest import mock from skael.models import db from skael.models.user_table import UserTable as User from skael.skael import create_app from skael.DAOs.user_dao import UserDAO from skael.utils.marshalizers import UserMarshal from skael.utils.exceptions import IntegrationException app = create_app() class TestUserRestPasswordTestCase(unittest.TestCase): @classmethod def setUpClass(cls): with app.app_context(): db.drop_all() db.create_all() cls.test_client = app.test_client() cls.test_dao = UserDAO() def setUp(self): with app.app_context(): test_user = User( '*****@*****.**', 'testpw',
from skael.skael import create_app if __name__ == '__main__': create_app().run()