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:
Madhur Tandon
2022-09-01 01:02:43 +05:30
committed by GitHub
parent eddde7c94c
commit e31e03afde
7 changed files with 130 additions and 17 deletions

View File

@@ -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}