This commit is contained in:
2025-03-03 21:49:16 +03:00
parent 89df7980cf
commit 95003fada9
2 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ from flask import Flask
def create_app():
app = Flask('proxy')
app = Flask(__name__)
from proxy import rss_proxy, healthcheck
rss_proxy.init_proxy(app)

View File

@@ -1,13 +1,13 @@
import unittest
from unittest.mock import patch, MagicMock
from proxy import proxy_app
from proxy import create_app
class FlaskTestCase(unittest.TestCase):
def setUp(self):
"""Set up for tests: create a test client."""
app = proxy_app()
app = create_app()
self.app = app.test_client()
self.app.testing = True