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

@@ -84,11 +84,4 @@ function handleFetchError(e: Error, singleFile: string) {
showError(errorContent);
}
/**
* determines if the process is running inside the testing suite i.e. jest
*/
function inJest(): boolean {
return process.env.JEST_WORKER_ID !== undefined;
}
export { addClasses, removeClasses, getLastPath, ltrim, htmlDecode, guidGenerator, showError, handleFetchError, inJest };
export { addClasses, removeClasses, getLastPath, ltrim, htmlDecode, guidGenerator, showError, handleFetchError };