mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Test improvements and fixed deprecation warnings (#2464)
* `asyncio_default_fixture_loop_scope = function` * Fix a bunch of BeautifulSoup deprecation warnings * Fix for PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO [closed]> * xfail for sql_time_limit tests (these can be flaky in CI) Refs #2461
This commit is contained in:
parent
962da77d61
commit
53a3b3c80e
11 changed files with 49 additions and 44 deletions
|
|
@ -1054,7 +1054,8 @@ def resolve_env_secrets(config, environ):
|
|||
if list(config.keys()) == ["$env"]:
|
||||
return environ.get(list(config.values())[0])
|
||||
elif list(config.keys()) == ["$file"]:
|
||||
return open(list(config.values())[0]).read()
|
||||
with open(list(config.values())[0]) as fp:
|
||||
return fp.read()
|
||||
else:
|
||||
return {
|
||||
key: resolve_env_secrets(value, environ)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue