api_v1.4/hub_api/tests/test_api.py
2023-07-28 08:26:02 -04:00

17 lines
711 B
Python

from unittest import TestCase
from hub_api.config import Config
from hub.persistence.models import City, Application, CityObject, SimulationResults, User
class TestApi(TestCase):
def test_create_database(self):
config = Config()
Application.__table__.create(bind=config.repository.engine, checkfirst=True)
User.__table__.create(bind=config.repository.engine, checkfirst=True)
City.__table__.create(bind=config.repository.engine, checkfirst=True)
CityObject.__table__.create(bind=config.repository.engine, checkfirst=True)
SimulationResults.__table__.create(bind=config.repository.engine, checkfirst=True)
config.database.create_user('Administrator', )
self.assertTrue(True)