HomeSoftware Heritage

tests: Add module to generate relevant data as tests input
4c25aa387f5fUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

tests: Add module to generate relevant data as tests input

In order to avoid harcoding tests input data and get closer to real world ones,
populate a test archive by loading in it a couple of lightweight git repositories.

The ids of the objects in this test archive (contents, directories, revisions, ...)
will then be provided as tests input in order to retrieve their associated data
from the in-memory storages. Proceeding like this will allow us to remove a
lot of mocks in the tests implementation.

Related T1271

Details

Provenance
anlambertAuthored on Dec 14 2018, 5:53 PM
anlambertPushed on Dec 17 2018, 4:34 PM
Differential Revision
D825: Add module to generate relevant data as tests input
Parents
R65:71fe476b83d5: tests: Rename base TestCase class
Branches
Unknown
Tags
Unknown
References
tag: phabricator/diff/2669, tag: phabricator/base/2698, tag: phabricator/base/2677, tag: phabricator/base/2670