Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

{"$file": ...} mechanism is broken #839

Closed
simonw opened this issue Jun 12, 2020 · 0 comments
Closed

{"$file": ...} mechanism is broken #839

simonw opened this issue Jun 12, 2020 · 0 comments
Labels

Comments

@simonw
Copy link
Owner

simonw commented Jun 12, 2020

https://travis-ci.org/github/simonw/datasette/jobs/697445318

    def test_plugin_config_file(app_client):
        open(TEMP_PLUGIN_SECRET_FILE, "w").write("FROM_FILE")
>       assert {"foo": "FROM_FILE"} == app_client.ds.plugin_config("file-plugin")
E       AssertionError: assert {'foo': 'FROM_FILE'} == {'foo': {'$fi...ugin-secret'}}
E         Differing items:
E         {'foo': 'FROM_FILE'} != {'foo': {'$file': '/tmp/plugin-secret'}}
E         Use -v to get the full diff

Broken in fba8ff6 as part of #837

@simonw simonw added the bug label Jun 12, 2020
@simonw simonw added this to the Datasette 0.44 milestone Jun 12, 2020
@simonw simonw closed this as completed in 9ae0d48 Jun 12, 2020
simonw added a commit that referenced this issue Jun 12, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant