datasette/tests
Simon Willison 6a32df334d
Improved fixtures to support publication
The fixtures database created by our unit tests makes for a good "live" demo
of Datasette in action.

I've improved the metadata it ships with to better support this use-case.

I've also improved the mechanism for writing out fixtures: you can do this:

	python tests/fixtures.py fixtures.db

To get just the fixtures database written out... or you can do this:

	python tests/fixtures.py fixtures.db fixtures.json

To get metadata which you can then serve like so:

	datasette fixtures.db -m fixtures.json

Refs #313
2018-06-17 12:16:04 -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 Basic CSV export, refs #266 2018-06-14 23:51:23 -07:00