mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-03-12 07:45:48 +03:00
Fix ext.flask tests
This commit is contained in:
parent
d916bd4ce3
commit
541534ec1d
|
@ -40,14 +40,14 @@ class Application(containers.DeclarativeContainer):
|
|||
|
||||
class ApplicationTests(unittest.TestCase):
|
||||
|
||||
def setUp(self) -> None:
|
||||
def setUp(self):
|
||||
application = Application()
|
||||
self.app = application.app()
|
||||
self.app.config['SERVER_NAME'] = 'test-server.com'
|
||||
self.client = self.app.test_client()
|
||||
self.client.__enter__()
|
||||
|
||||
def tearDown(self) -> None:
|
||||
def tearDown(self):
|
||||
self.client.__exit__(None, None, None)
|
||||
|
||||
def test_index(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user