Revision fb70f881cb379ce04ebd0d8c48d4bfd4f79a5971 authored by David Douard on 30 September 2019, 10:14:47 UTC, committed by David Douard on 14 October 2019, 12:14:08 UTC
- use pytest instead of unittest.TestCase plumbing
- extract data from the TestStorageData into a data `storage_data` module;
  this module also provide a simple helper `StorageData` class that mimics
  the original class (access by attributes),
- implement a series of pytest fixtures for these storage specific tests,
- get rid of most hypothesis-based tests,
- replace usage of the use_url hypothesis boolean statetgy by
  pytest.mark.parametrize fixtures; this allows to prevent from
  the need of resetting the storage, since tests are truly executed
  twice (thus with a new swh_storage),
- refactor test_db to use pytest-postgresql.

Disable (xfail) tests from test_snapshot.py, test_api_client
and test_in_memory for now.

Fixes/refactorings come with following revisions.
1 parent 62aff76
History
File Mode Size
swh-storage-add-dir -rwxr-xr-x 1.2 KB

back to top