mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-22 12:41:57 +00:00
33 lines
753 B
Python
33 lines
753 B
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
# Copyright (C) 2020-2021 Graz University of Technology.
|
|
#
|
|
# invenio-theme-iform is free software; you can redistribute it and/or
|
|
# modify it under the terms of the MIT License; see LICENSE file for more
|
|
# details.
|
|
|
|
"""Pytest configuration.
|
|
|
|
See https://pytest-invenio.readthedocs.io/ for documentation on which test
|
|
fixtures are available.
|
|
"""
|
|
|
|
import pytest
|
|
from flask import Flask
|
|
from invenio_i18n import InvenioI18N
|
|
|
|
from invenio_theme_iform import InvenioThemeIform
|
|
|
|
|
|
@pytest.fixture()
|
|
def app(request):
|
|
"""Basic Flask application."""
|
|
app = Flask("testapp")
|
|
app.config.update(
|
|
I18N_LANGUAGES=[("en", "English"), ("de", "German")],
|
|
)
|
|
InvenioThemeIform(app)
|
|
InvenioI18N(app)
|
|
|
|
return app
|