fixes
This commit is contained in:
@@ -2,7 +2,7 @@ from flask import Flask
|
|||||||
|
|
||||||
|
|
||||||
def create_app():
|
def create_app():
|
||||||
app = Flask('proxy')
|
app = Flask(__name__)
|
||||||
|
|
||||||
from proxy import rss_proxy, healthcheck
|
from proxy import rss_proxy, healthcheck
|
||||||
rss_proxy.init_proxy(app)
|
rss_proxy.init_proxy(app)
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
import unittest
|
import unittest
|
||||||
from unittest.mock import patch, MagicMock
|
from unittest.mock import patch, MagicMock
|
||||||
from proxy import proxy_app
|
from proxy import create_app
|
||||||
|
|
||||||
|
|
||||||
class FlaskTestCase(unittest.TestCase):
|
class FlaskTestCase(unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
"""Set up for tests: create a test client."""
|
"""Set up for tests: create a test client."""
|
||||||
app = proxy_app()
|
app = create_app()
|
||||||
self.app = app.test_client()
|
self.app = app.test_client()
|
||||||
self.app.testing = True
|
self.app.testing = True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user