- Apr 08, 2020
-
-
David Douard authored
- blackify all the python files, - enable black in pre-commit, - add a black tox environment.
-
Daniele Serafini authored
-
- Apr 02, 2020
-
-
Antoine R. Dumont authored
Hinting at the origin_visit_update model Related to T2310
-
Antoine Lambert authored
A release may have an empty message, for instance those derived from a Mercurial repository. So make that field optional to avoid type validation errors.
-
Antoine Lambert authored
Fix keyword parameters transmission to snapshots_d strategy. Ensure max_size constraint is respected when fixing snapshot aliases.
-
- Apr 01, 2020
-
-
David Douard authored
With support for str representation of date. Mostly for testing purpose.
-
David Douard authored
-
David Douard authored
instead of a reference to an Origin entity.
-
David Douard authored
for each entity model `Model`, provide a `models_d` strategy that produces dicts suitable for using as argument for the `Model.from_dict` factory method, and reimplement the `models` generator using this former hypothesis generator. This is needed to help writing low level tests for model entities.
-
David Douard authored
- add a validator for negative_utc (can be True iff offset is 0), - update the timestamps_with_timezone hypothesis strategy, - add low-level tests for it.
-
David Douard authored
-
David Douard authored
This ensures all instanciated model entities have valid types for attributes. Related to T2308.
-
- Mar 31, 2020
-
-
Antoine R. Dumont authored
(pairing with @vlorentz) Related to T2310
-
- Mar 30, 2020
-
-
Roberto Di Cosmo authored
-
Roberto Di Cosmo authored
-
- Mar 28, 2020
-
-
Roberto Di Cosmo authored
-
Roberto Di Cosmo authored
-
- Mar 23, 2020
-
-
Antoine Pietri authored
-
- Mar 12, 2020
-
-
David Douard authored
These are expected to be bytes, not str.
-
- Mar 11, 2020
-
-
David Douard authored
this does not work in the general case since there is no (recursive) convertion of objects used as model object initialization. We can only check when using the from_dict() factory.
-
David Douard authored
for better clarity on the code author's intention.
-
David Douard authored
it was still here for bw-compat but should not be necessary any more.
-
David Douard authored
this function does not need to be a local function of the to_dict namespace.
-
- Mar 04, 2020
-
- Mar 02, 2020
-
-
Nicolas Dandrimont authored
This generates more realistic contents and avoids spurious HashCollisions when generating a set of objects using these hypothesis strategies, at the cost of slightly worse "boundary checking" (i.e. we won't check contents with a length > 4096 bytes).
-
Nicolas Dandrimont authored
This lets us generate Content objects directly from a bytestring, with the proper set of hashes auto-generated from the contents.
-
- Feb 27, 2020
-
-
Nicolas Dandrimont authored
-
Antoine R. Dumont authored
-
vlorentz authored
Will be used by loaders.
-
vlorentz authored
-
- Feb 24, 2020
-
-
vlorentz authored
It just makes more sense that way. eg. before this change, all leafs would be equal to each other.
-
vlorentz authored
They will be used by loaders, so they can deal only with model objects, instead of having to do the same conversion themselves. This removes the `data` and `save_path` arguments of `from_file` and `from_disk`, as data loading is always deferred from now on. To access it, users are now expected to either open the data files themselves, or us `.to_model().with_data()`.
-
- Feb 21, 2020
-
-
vlorentz authored
Regular files were created, as the 'mode' argument of os.mknod was missing. However, creating devices requires root; so we can't reasonably do that in tests. Instead, we're using /dev/null instead of creating one. And while we're at it, let's also use /dev/zero (which, if not handled properly, will result in an infinite read).
-
vlorentz authored
It should be cheap enough to do it, and it makes tests easier.
-
vlorentz authored
-
vlorentz authored
It will be useful to loaders, as they currently load the entire content in memory before deciding to skip it.
-
- Feb 18, 2020
-
-
Nicolas Dandrimont authored
This allows the `swh identify` command to work again. Close T2288
-
- Feb 14, 2020
-
-
vlorentz authored
Can be useful to deduplicate code in swh-storage.
-
- Feb 07, 2020
-