datasette/tests
Simon Willison db1e6bc182
--version-note for datasette, datasette publish and datasette package
This is a relatively obscure new command-line argument that helps solve the
problem of showing accurate version information in deployed instances of
Datasette even if they were deployed directly from source code.

You can pass --version-note to datasette publish and package and it will then
in turn be passed to datasette when it starts:

    datasette --version-note=hello fixtures.db

Now if you visit /-/versions.json you will see this:

    {
        "datasette": {
            "note": "hello",
            "version": "0+unknown"
        },
        "python": {
            "full": "3.6.5 (default, Jun  6 2018, 19:19:24) \n[GCC 6.3.0 20170516]",
            "version": "3.6.5"
        },
        ...
    }

I plan to use this in some Travis CI configuration, refs #313
2018-06-17 14:19:39 -07:00
..
__init__.py Broke up test_app into test_api and test_html 2017-12-15 04:08:24 -08:00
fixtures.py Improved fixtures to support publication 2018-06-17 12:16:04 -07:00
test_api.py Renamed test_tables.db to fixtures.db in unit tests 2018-06-17 11:34:16 -07:00
test_csv.py Renamed test_tables.db to fixtures.db in unit tests 2018-06-17 11:34:16 -07:00
test_docs.py Test that ensures all config options are documented 2018-05-26 15:11:16 -07:00
test_html.py Improved fixtures to support publication 2018-06-17 12:16:04 -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 --version-note for datasette, datasette publish and datasette package 2018-06-17 14:19:39 -07:00