Skip to content

Commit

Permalink
Adding app tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Filienko committed Jun 25, 2024
1 parent d465c09 commit f2bc2f3
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/test_app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import unittest
from isacc_messaging.app import create_app

class TestConfig:
TESTING = True
LOG_LEVEL = 'DEBUG'
LOGSERVER_URL = None
LOGSERVER_TOKEN = None
VERSION_STRING = 'test_version'
PREFERRED_URL_SCHEME = 'http'


class TestIsaccMessagingApp(unittest.TestCase):
def setUp(self):
self.app = create_app(testing=True)
self.app.config.from_object(TestConfig)
self.client = self.app.test_client()

def test_app_exists(self):
self.assertIsNotNone(self.app)

def test_blueprints_registered(self):
self.assertIn('base_blueprint', self.app.blueprints)
self.assertIn('migration_blueprint', self.app.blueprints)

if __name__ == '__main__':
unittest.main()

0 comments on commit f2bc2f3

Please sign in to comment.