summaryrefslogtreecommitdiff
path: root/tests/integration/test_sqlite.py
Commit message (Collapse)AuthorAgeFilesLines
* Enable bugbear extension and fix warningsJordan Cook2023-05-081-4/+4
|
* Share SQLite connection objects among threads and use lock for write ↵Jordan Cook2023-03-011-1/+1
| | | | operations instead of using thread-local connections
* Add tests for pypy3.9Jordan Cook2022-12-301-2/+10
|
* Make use of index with SQLiteCache.filter(expired=False)Jordan Cook2022-10-281-4/+8
|
* Add SQLite method to count unexpired responses in SQLJordan Cook2022-10-281-0/+10
|
* Omit invalid responses and set response.cache_key in SQLiteCache.sorted()Jordan Cook2022-10-281-4/+30
|
* Clean up SQLiteCache convenience methods a bitJordan Cook2022-06-111-4/+9
|
* Add SQLiteDict.size() method to estimate the database sizeJordan Cook2022-04-221-4/+11
|
* Merge *PickleDict storage classes into parent classesJordan Cook2022-04-221-12/+11
|
* Add SQLiteDict.sorted() method with sorting and other query optionsJordan Cook2022-04-101-2/+102
|
* Add indexed datetime column to SQLite backend for faster evictionJordan Cook2022-04-101-26/+26
|
* Update tests, changelog, and contributorsJordan Cook2022-04-061-3/+5
|
* Swap out appdirs for platformdirsJordan Cook2022-03-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | * platformdirs is a more actively maintained fork of appdirs. * Also relax requirements a bit for attrs and urllib (minimum instead of caret constraint) Dependabot update: Bump responses from 0.16.0 to 0.19.0 Bumps [responses](https://github.com/getsentry/responses) from 0.16.0 to 0.19.0. - [Release notes](https://github.com/getsentry/responses/releases) - [Changelog](https://github.com/getsentry/responses/blob/master/CHANGES) - [Commits](https://github.com/getsentry/responses/compare/0.16.0...0.19.0) --- updated-dependencies: - dependency-name: responses dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* Add better error message if parent path exists but isn't a directoryJordan Cook2021-10-101-1/+10
|
* Add a bit of missing test coverageJordan Cook2021-09-061-0/+10
|
* Use pathlib.Path objects for all file paths in Filesystem and SQLite backendsJordan Cook2021-08-291-4/+4
|
* Add appdirs as a dependency, and add 'use_cache_dir' option to SQLite and ↵Jordan Cook2021-08-211-0/+8
| | | | Filesystem backends
* Add support for SQLite in-memory databasesJordan Cook2021-08-201-1/+16
|
* Rename DbDict to SQLiteDict for consistency with other backends (with ↵Jordan Cook2021-08-191-7/+7
| | | | aliases for backwards-compatibility)
* SQLite clear(): first attempt DROP TABLE, then delete and re-initialize the ↵Jordan Cook2021-08-101-0/+21
| | | | cache file if that fails
* Update `DbDict.bulk_delete()` to support deleting more items than SQLite's ↵Jordan Cook2021-08-021-4/+27
| | | | variable limit (999)
* Make sure all tests with SQLite dbs clean up after themselvesJordan Cook2021-04-291-2/+2
|
* Add use_temp option to SQLite backendJordan Cook2021-04-221-0/+9
| | | | Closes #243
* Combine test_cache.py with BaseCacheTest to run these tests for all backendsJordan Cook2021-04-221-1/+2
|
* Turn multi-threaded stress tests into test (sub)classesJordan Cook2021-04-221-4/+16
| | | | | | This is mainly to take advantage of fail-fast connection tests; otherwise, these tests may just hang if backend dependenices are installed but backend services are not set up. See issue #221 for details.
* Turn remaining unittest.TestCase classes into pytest-style test classesJordan Cook2021-04-221-45/+17
|
* Reorganize backend integration tests and add some more thorough testsJordan Cook2021-04-221-46/+46
|
* add sqlite no-op testsjsemric2021-04-211-0/+15
|
* Allow passing any valid backend connection kwargs via BaseCacheJordan Cook2021-04-191-3/+3
| | | | | | | | * Pass `**kwargs` to backend storage classes, split out any that are valid for the backend-specific connection function/class, and pass them to the connection * Add intersphinx links to docs for dependencies * Update and format some more backend class docstrings * Remove 'Unrecognized keyword arguments' warning from `BaseStorage` * Turn `warnings.warn` about using secret keys into a `logging.warning` (due to complaints about too many messages)
* Add one test case per backend storage classJordan Cook2021-04-121-35/+38
|
* Split tests into unit and integration tests and run separately in CI; update ↵Jordan Cook2021-03-311-0/+92
Contributing Guide with more notes on testing