Commit 8220682c authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed wrong doc directory and added test for getting docs.

parent d9c87b78
Pipeline #40931 passed with stages
in 14 minutes and 46 seconds
......@@ -30,7 +30,7 @@ base_path = config.services.api_base_path
app = Flask(
__name__,
static_url_path='%s/docs' % base_path,
static_folder=os.path.abspath(os.path.join(os.path.dirname(__file__), '../docs/.build/html')))
static_folder=os.path.abspath(os.path.join(os.path.dirname(__file__), '../../docs/.build/html')))
""" The Flask app that serves all APIs. """
CORS(app)
......
......@@ -386,6 +386,11 @@ def test_get_non_existing_archive(client, no_warn):
assert rv.status_code == 404
def test_docs(client):
rv = client.get('/docs/introduction.html')
assert rv.status_code == 200
class TestRaw:
@pytest.fixture
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment