mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-03-12 15:55:47 +03:00
Fix flask tests
This commit is contained in:
parent
602beced8a
commit
2c650010e6
|
@ -1,7 +1,7 @@
|
||||||
"""Dependency injector Flask extension unit tests."""
|
"""Dependency injector Flask extension unit tests."""
|
||||||
|
|
||||||
import unittest2 as unittest
|
import unittest2 as unittest
|
||||||
from flask import Flask, url_for
|
from flask import url_for
|
||||||
from flask.views import MethodView
|
from flask.views import MethodView
|
||||||
|
|
||||||
from dependency_injector import containers, providers
|
from dependency_injector import containers, providers
|
||||||
|
@ -42,7 +42,7 @@ class ApplicationTests(unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self) -> None:
|
def setUp(self) -> None:
|
||||||
application = Application()
|
application = Application()
|
||||||
self.app: Flask = application.app()
|
self.app = application.app()
|
||||||
self.app.config['SERVER_NAME'] = 'test-server.com'
|
self.app.config['SERVER_NAME'] = 'test-server.com'
|
||||||
self.client = self.app.test_client()
|
self.client = self.app.test_client()
|
||||||
self.client.__enter__()
|
self.client.__enter__()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user