datasette/tests
Simon Willison dbbe707841
publish_subcommand hook + default plugins mechanism, used for publish heroku/now (#349)
This change introduces a new plugin hook, publish_subcommand, which can be
used to implement new subcommands for the "datasette publish" command family.

I've used this new hook to refactor out the "publish now" and "publish heroku"
implementations into separate modules. I've also added unit tests for these
two publishers, mocking the subprocess.call and subprocess.check_output
functions.

As part of this, I introduced a mechanism for loading default plugins. These
are defined in the new "default_plugins" list inside datasette/app.py

Closes #217 (Plugin support for datasette publish)
Closes #348 (Unit tests for "datasette publish")
Refs #14, #59, #102, #103, #146, #236, #347
2018-07-25 22:15:59 -07:00
..
__init__.py Broke up test_app into test_api and test_html 2017-12-15 04:08:24 -08:00
fixtures.py ?_json_infinity=1 for handling Infinity/-Infinity - fixes #332 2018-07-23 20:07:57 -07:00
test_api.py ?_json_infinity=1 for handling Infinity/-Infinity - fixes #332 2018-07-23 20:07:57 -07:00
test_csv.py CSV export now respects --cors, fixes #326 2018-06-23 17:59:37 -07:00
test_docs.py publish_subcommand hook + default plugins mechanism, used for publish heroku/now (#349) 2018-07-25 22:15:59 -07:00
test_html.py URLify URLs in custom SQL queries, closes #298 2018-07-23 20:56:32 -07:00
test_inspect.py Renamed test_tables.db to fixtures.db in unit tests 2018-06-17 11:34:16 -07:00
test_plugins.py Renamed test_tables.db to fixtures.db in unit tests 2018-06-17 11:34:16 -07:00
test_utils.py Fixed incorrect display of compound primary keys with foreign key references 2018-06-21 07:56:28 -07:00