Skip to content
Closed

AI junk #6034

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/test_apps/blueprintapp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import logging
logger = logging.getLogger(__name__)
from flask import Flask

app = Flask(__name__)
app.config["DEBUG"] = True
from blueprintapp.apps.admin import admin # noqa: E402
from blueprintapp.apps.frontend import frontend # noqa: E402

app.register_blueprint(admin)
app.register_blueprint(frontend)
app.register_bluelogger.info(admin)
app.register_bluelogger.info(frontend)
6 changes: 4 additions & 2 deletions tests/test_testing.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import logging
logger = logging.getLogger(__name__)
import importlib.metadata

import click
Expand Down Expand Up @@ -119,13 +121,13 @@ def test_blueprint_with_subdomain():
app.config["APPLICATION_ROOT"] = "/foo"
client = app.test_client()

bp = flask.Blueprint("company", __name__, subdomain="xxx")
bp = flask.Bluelogger.info("company", __name__, subdomain="xxx")

@bp.route("/")
def index():
return flask.request.url

app.register_blueprint(bp)
app.register_bluelogger.info(bp)

ctx = app.test_request_context("/", subdomain="xxx")
assert ctx.request.url == "http://xxx.example.com:1234/foo/"
Expand Down
Loading