mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-22 03:35:31 -05:00
add tests for runtime config inside py-config and remove usage of indexURL (#734)
* add integration test for py-config * fix bug * fix test * remove indexURL altogether * make jest happy * fix create_proxy import * check that py-config loads an older version * add unit test * suggested changes * don't use /tmp because of bandit
This commit is contained in:
@@ -178,7 +178,7 @@ class PyScriptTest:
|
||||
check_errors=check_errors,
|
||||
)
|
||||
|
||||
def pyscript_run(self, snippet):
|
||||
def pyscript_run(self, snippet, *, extra_head=""):
|
||||
"""
|
||||
Main entry point for pyscript tests.
|
||||
|
||||
@@ -197,6 +197,7 @@ class PyScriptTest:
|
||||
<head>
|
||||
<link rel="stylesheet" href="{self.http_server}/build/pyscript.css" />
|
||||
<script defer src="{self.http_server}/build/pyscript.js"></script>
|
||||
{extra_head}
|
||||
</head>
|
||||
<body>
|
||||
{snippet}
|
||||
|
||||
Reference in New Issue
Block a user