fed8b2eed7
Backend release / release (push) Waiting to run
Bandit Security Scan / bandit_scan (push) Waiting to run
Build and push multi-arch DocsGPT Docker image / build (linux/amd64, ubuntu-latest, amd64) (push) Waiting to run
Build and push multi-arch DocsGPT Docker image / build (linux/arm64, ubuntu-24.04-arm, arm64) (push) Waiting to run
Build and push multi-arch DocsGPT Docker image / manifest (push) Blocked by required conditions
Build and push DocsGPT FE Docker image for development / build (linux/amd64, ubuntu-latest, amd64) (push) Waiting to run
Build and push DocsGPT FE Docker image for development / build (linux/arm64, ubuntu-24.04-arm, arm64) (push) Waiting to run
Build and push DocsGPT FE Docker image for development / manifest (push) Blocked by required conditions
Python linting / ruff (push) Waiting to run
Run python tests with pytest / Run tests and count coverage (3.12) (push) Waiting to run
React Widget Build / build (push) Waiting to run
22 lines
786 B
Python
22 lines
786 B
Python
import pytest
|
|
from application.api.answer import answer
|
|
from application.api.internal.routes import internal
|
|
from application.api.user.routes import user
|
|
from application.core.settings import settings
|
|
from flask import Flask
|
|
|
|
|
|
@pytest.mark.unit
|
|
def test_app_config():
|
|
app = Flask(__name__)
|
|
app.register_blueprint(user)
|
|
app.register_blueprint(answer)
|
|
app.register_blueprint(internal)
|
|
app.config["UPLOAD_FOLDER"] = "inputs"
|
|
app.config["CELERY_BROKER_URL"] = settings.CELERY_BROKER_URL
|
|
app.config["CELERY_RESULT_BACKEND"] = settings.CELERY_RESULT_BACKEND
|
|
|
|
assert app.config["UPLOAD_FOLDER"] == "inputs"
|
|
assert app.config["CELERY_BROKER_URL"] == settings.CELERY_BROKER_URL
|
|
assert app.config["CELERY_RESULT_BACKEND"] == settings.CELERY_RESULT_BACKEND
|