-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: classic template did not pass base_url to macro
Fixes #734
- Loading branch information
1 parent
b003a7f
commit 6bcc277
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# tests basic things the templates should have | ||
import pytest | ||
|
||
import os | ||
|
||
BASE_DIR = os.path.dirname(__file__) | ||
|
||
|
||
@pytest.fixture(params=['lab', 'classic']) | ||
def voila_args_extra(request): | ||
return [f'--template={request.param}'] | ||
|
||
|
||
async def test_lists_extension(http_server_client, base_url, voila_app): | ||
response = await http_server_client.fetch(base_url) | ||
assert response.code == 200 | ||
html_text = response.body.decode('utf-8') | ||
assert f'/voila/templates/{voila_app.voila_configuration.template}/static/voila.js' in html_text | ||
assert '/voila/static/require.min.js' in html_text |