Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
SageTendo committed Dec 15, 2024
1 parent 9c75e49 commit 9989204
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
28 changes: 10 additions & 18 deletions run.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import logging

from dotenv import load_dotenv
from flask import Flask, render_template, session, url_for, redirect
from flask_compress import Compress

Expand All @@ -12,25 +11,18 @@
from app.routes.stream import stream_bp
from config import Config

app = Flask(__name__, template_folder='./templates', static_folder='./static')
app.config.from_object('config.Config')
app.register_blueprint(auth_blueprint)
app.register_blueprint(manifest_blueprint)
app.register_blueprint(catalog_bp)
app.register_blueprint(meta_bp)
app.register_blueprint(content_sync_bp)
app.register_blueprint(stream_bp)

def create_app():
load_dotenv()
Compress(app)

app = Flask(__name__, template_folder='./templates', static_folder='./static')
app.config.from_object('config.Config')
app.register_blueprint(auth_blueprint)
app.register_blueprint(manifest_blueprint)
app.register_blueprint(catalog_bp)
app.register_blueprint(meta_bp)
app.register_blueprint(content_sync_bp)
app.register_blueprint(stream_bp)

Compress(app)
logging.basicConfig(format='%(asctime)s %(message)s')
return app


app = create_app()
logging.basicConfig(format='%(asctime)s %(message)s')


@app.route('/')
Expand Down
2 changes: 1 addition & 1 deletion tests/routes/test_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def setUp(self):
"""
Set up the test class
"""
self.client = create_app().test_client()
self.client = app.test_client()

def test_manifest(self):
"""
Expand Down

0 comments on commit 9989204

Please sign in to comment.