26 rows where search matches "pytest" sorted by author_date descending

View and edit SQL

Suggested facets: raw_author, raw_committer, committer, author_date (date), committer_date (date)

sha message author_date ▲ committer_date raw_author raw_committer repo author committer
461670a0b87efa953141b449a9a261919864ceb3 Support for generated columns * Support for generated columns, closes #1116 * Show SQLite version in pytest report header * Use table_info() if SQLite < 3.26.0 * Cache sqlite_version() rather than re-calculate every time * Adjust test_database_page for SQLite 3.26.0 or higher 2020-11-30T21:29:57Z 2020-11-30T21:29:57Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 GitHub cd792325681cbad9f663f2879d8b69f1edbb678f datasette 107914493 simonw 9599 web-flow 19864447
1f021c37110fc9019b0ef70062c28c335e568ae2 Update pytest requirement from <6.1.0,>=5.2.2 to >=5.2.2,<6.2.0 (#977) Updates the requirements on [pytest](https://github.com/pytest-dev/pytest) to permit the latest version. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/5.2.2...6.1.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> 2020-09-28T22:16:34Z 2020-09-28T22:16:34Z dependabot-preview[bot] 2edd38cb3801aa07f709f083eba7cbe4f16e0978 GitHub cd792325681cbad9f663f2879d8b69f1edbb678f datasette 107914493 dependabot-preview[bot] 27856297 web-flow 19864447
c5c12a797f0b81cd5862dcd50354b4b571e9bf5a Update pytest requirement from <5.5.0,>=5.2.2 to >=5.2.2,<6.1.0 (#910) Updates the requirements on [pytest](https://github.com/pytest-dev/pytest) to permit the latest version. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/5.2.2...6.0.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> 2020-07-29T21:26:03Z 2020-07-29T21:26:03Z dependabot-preview[bot] 2edd38cb3801aa07f709f083eba7cbe4f16e0978 GitHub cd792325681cbad9f663f2879d8b69f1edbb678f datasette 107914493 dependabot-preview[bot] 27856297 web-flow 19864447
1bb33dab49fd25f77b9f8e7ab7ee23b3d64c123c Update pytest-asyncio requirement from <0.13,>=0.10 to >=0.10,<0.15 (#866) Updates the requirements on [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) to permit the latest version. - [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases) - [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.10.0...v0.14.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> 2020-06-24T18:50:55Z 2020-06-24T18:50:55Z dependabot-preview[bot] 2edd38cb3801aa07f709f083eba7cbe4f16e0978 GitHub cd792325681cbad9f663f2879d8b69f1edbb678f datasette 107914493 dependabot-preview[bot] 27856297 web-flow 19864447
b314e088c59425122fb2b2abde8741010d9d274a Update pytest-asyncio requirement from ~=0.10.0 to >=0.10,<0.13 (#753) Updates the requirements on [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) to permit the latest version. - [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases) - [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.10.0...v0.12.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> 2020-05-04T17:40:48Z 2020-05-04T17:40:48Z dependabot-preview[bot] 2edd38cb3801aa07f709f083eba7cbe4f16e0978 GitHub cd792325681cbad9f663f2879d8b69f1edbb678f datasette 107914493 dependabot-preview[bot] 27856297 web-flow 19864447
450d2e2896e07a8ce27f1cf143febe280c97301b Fixed pytest warning about TestClient class 2020-05-04T17:40:01Z 2020-05-04T17:42:10Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 datasette 107914493 simonw 9599 simonw 9599
c91fb9e3d4f0632d4ef25a21165739ab88a9d491 Update pytest requirement from ~=5.2.2 to >=5.2.2,<5.5.0 (#721) Updates the requirements on [pytest](https://github.com/pytest-dev/pytest) to permit the latest version. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/5.2.2...5.4.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> 2020-05-04T17:13:41Z 2020-05-04T17:13:41Z dependabot-preview[bot] 2edd38cb3801aa07f709f083eba7cbe4f16e0978 GitHub cd792325681cbad9f663f2879d8b69f1edbb678f datasette 107914493 dependabot-preview[bot] 27856297 web-flow 19864447
0091dfe3e5a3db94af8881038d3f1b8312bb857d More reliable tie-break ordering for facet results I was seeing a weird bug where the order of results running tests on my laptop was inconsistent, causing pytest failures even though the order of tests in Travis CI was fine. I think the fix is to explicitly state how facet ordering ties on the count should be resolved. 2020-02-13T06:36:42Z 2020-02-13T06:36:42Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 datasette 107914493 simonw 9599 simonw 9599
84351a5269ca6a2e99808cd66652a6158e2f67f0 Use pytest -vv 2019-09-05T20:18:02Z 2019-09-05T20:18:02Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 google-takeout-to-sqlite 206649770 simonw 9599 simonw 9599
506c9d5e8e659b46e2f544bf476a96047feed402 Circle CI now runs pytest 2019-09-04T20:00:10Z 2019-09-04T20:00:10Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 twitter-to-sqlite 206156866 simonw 9599 simonw 9599
5da18118ea820b3e76dad4a8d53cd4de6f63e658 Run pytest with -vv in Circle CI 2019-08-31T02:39:12Z 2019-08-31T02:39:12Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 swarm-to-sqlite 205429375 simonw 9599 simonw 9599
fcfcae21e67cc15090942b1d2a47b5f016279337 extra_template_vars plugin hook (#542) * extra_template_vars plugin hook Closes #541 * Workaround for cwd bug Based on https://github.com/pytest-dev/pytest/issues/1235#issuecomment-175295691 2019-07-06T00:05:56Z 2019-07-06T00:05:56Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 GitHub cd792325681cbad9f663f2879d8b69f1edbb678f datasette 107914493 simonw 9599 web-flow 19864447
f0d32da0a9af87bcb15e34e35424f0c0053be83a Switch to ~= dependencies, closes #532 (#536) * Switch to ~= dependencies, closes #532 * Bump click and click-default-group * imp. is deprecated, use types.ModuleType instead - thanks https://stackoverflow.com/a/32175781 * Upgrade to pytest 5 2019-07-03T04:32:55Z 2019-07-03T04:32:55Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 GitHub cd792325681cbad9f663f2879d8b69f1edbb678f datasette 107914493 simonw 9599 web-flow 19864447
5e8fbf7f6fbc0b63d0479da3806dd9ccd6aaa945 Upgrade pytest to 4.6.1, pluggy to 0.12.0 (#497) 2019-06-03T02:06:26Z 2019-06-03T02:06:26Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 GitHub cd792325681cbad9f663f2879d8b69f1edbb678f datasette 107914493 simonw 9599 web-flow 19864447
5ef3b2d6c902622b349a35d33eefc39f2a85e59e Don't use -v with pytest in Travis It seems to slow things down more than I expected. 2019-05-25T16:19:30Z 2019-05-25T16:19:30Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 datasette 107914493 simonw 9599 simonw 9599
6e79fecf7e57adf89e072c7ce3a70a83d3d10ec4 Travis now uses pytest -v 2019-05-23T05:54:40Z 2019-05-23T05:54:40Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 datasette 107914493 simonw 9599 simonw 9599
f553a670216960043ec7e62ff35d42db78903ff0 Don't load setuptools plugins during test runs Uses pattern from https://docs.pytest.org/en/latest/example/simple.html#detect-if-running-from-within-a-pytest-run Closes #438 2019-05-02T05:09:03Z 2019-05-02T05:09:03Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 datasette 107914493 simonw 9599 simonw 9599
788f218e267ad9e29df904c6c6a61e78bcc8e744 Supress pytest warnings from 3rd party modules 2019-01-06T04:44:34Z 2019-01-06T04:44:34Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 datasette 107914493 simonw 9599 simonw 9599
84d7890b63f6aa43e7369fa8fc7a0a1bbf98c91f Upgrade pytest to 4.0.2 2018-12-16T21:18:55Z 2018-12-16T21:18:55Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 datasette 107914493 simonw 9599 simonw 9599
3de8fac1d322cbab6c8c55899e0e8511b36337d0 New make_app_client() pattern Because next version of pytest discourages calling fixture factories as functions 2018-11-20T17:16:31Z 2018-11-20T17:46:47Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 datasette 107914493 simonw 9599 simonw 9599
e1db8194e8c1d7f361fd0c1c3fc1b91d6aa920e5 Bump versions of pytest, pluggy and beautifulsoup4 (#358) 2018-08-08T01:11:12Z 2018-08-08T01:11:12Z Simon Willison 2946d096d0cdefdc017559e6b57e87658736e843 GitHub cd792325681cbad9f663f2879d8b69f1edbb678f datasette 107914493 simonw 9599 web-flow 19864447
e8625695a3b7938f37b64dff09c14e47d9428fe5 xfail documentation unit tests for view classes, refs #299 More documentation unit tests. These ones check that every single **View class imported into the datasette/app.py module are covered by our documentation. Just one problem: they aren't documented yet. So I'm using the xfail pytest decorator to mark these tests as allowed-to-fail. When you run the test suite you now get a report of how many views still need to be documented, but it doesn't fail the tests. The output looks something like this: $ pytest tests/test_docs.py collected 31 items tests/test_docs.py ..........................XXXxx. [100%] ============ 26 passed, 2 xfailed, 3 xpassed in 1.06 seconds ============ Once I have documented all the views I will remove the xfail so any future views that are added without documentation will cause a test failure. We can detect that a view is documented by looking for ReST label in the docs, for example: .. _IndexView: Some view classes can be used to power multiple URLs - the JsonDataView class for example is used to power /-/metadata and /-/config and /-/plugins In this case, the second part of the label can indicate the variety of page, e.g: .. _JsonDataView_metadata: The test will pass as long as there is at least one label that starts with _JsonDataView. 2018-07-28T03:13:26Z 2018-07-28T03:13:26Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 datasette 107914493 simonw 9599 simonw 9599
47e689a89b3f5f0969595b17d2ec59ea3caffb3b Speed up Travis by reusing pip wheel cache across builds (#324) * Cache pip wheels between runs in Travis, refs #323 * Run pytest manually - "python setup.py test" appeared to still download a bunch of stuff: https://travis-ci.org/simonw/datasette/jobs/395306188 * Use extras_require so pip can install test dependencies: https://github.com/pypa/pip/issues/1197#issuecomment-228939212 2018-06-24T01:03:46Z 2018-06-24T01:03:46Z Simon Willison 2946d096d0cdefdc017559e6b57e87658736e843 GitHub cd792325681cbad9f663f2879d8b69f1edbb678f datasette 107914493 simonw 9599 web-flow 19864447
969771770fcf795daace72e2310804e699067cfe Upgrade pytest to 3.6.0 https://github.com/pytest-dev/pytest/issues/1875 made it impossible to declare a function as a fixture multiple times, which we were doing across different modules. The fix was to move our @pytest.fixture calls into decorators in the tests/fixtures.py module. 2018-05-31T13:40:30Z 2018-05-31T13:42:37Z Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 Simon Willison 13ae486343ea6454a93114c6f558ffea2f2c6874 datasette 107914493 simonw 9599 simonw 9599
f96e55bce55d26c4d5b198edc536e1b8e9bbea43 Fix pytest version conflict https://travis-ci.org/simonw/datasette/jobs/305929426 pkg_resources.VersionConflict: (pytest 3.2.1 (/home/travis/virtualenv/python3.5.3/lib/python3.5/site-packages), Requirement.parse('pytest==3.2.3')) 2017-11-22T20:15:29Z 2017-11-22T20:17:51Z Simon Willison 2946d096d0cdefdc017559e6b57e87658736e843 Simon Willison 2946d096d0cdefdc017559e6b57e87658736e843 datasette 107914493 simonw 9599 simonw 9599
40d3b3eae68286f67e40226f18f2621b26e5e533 Refactored tests into new tests/ folder Guided by https://docs.pytest.org/en/latest/goodpractices.html 2017-11-10T18:48:16Z 2017-11-10T18:48:16Z Simon Willison 2946d096d0cdefdc017559e6b57e87658736e843 Simon Willison 2946d096d0cdefdc017559e6b57e87658736e843 datasette 107914493 simonw 9599 simonw 9599

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [commits] (
   [sha] TEXT PRIMARY KEY,
   [message] TEXT,
   [author_date] TEXT,
   [committer_date] TEXT,
   [raw_author] TEXT REFERENCES [raw_authors]([id]),
   [raw_committer] TEXT REFERENCES [raw_authors]([id]),
   [repo] INTEGER REFERENCES [repos]([id]),
   [author] INTEGER REFERENCES [users]([id]),
   [committer] INTEGER REFERENCES [users]([id])
);
CREATE INDEX [idx_commits_committer]
                ON [commits] ([committer]);
CREATE INDEX [idx_commits_author]
                ON [commits] ([author]);
CREATE INDEX [idx_commits_repo]
                ON [commits] ([repo]);
CREATE INDEX [idx_commits_raw_committer]
                ON [commits] ([raw_committer]);
CREATE INDEX [idx_commits_raw_author]
                ON [commits] ([raw_author]);