model: Add automatic object identifier computation support
Add support to automatically compute identifier in the following object models: Directory, Release, Revision, Snapshot. If the identifier is not provided as parameter, it will be computed when the model is initialized.
Showing
- swh/model/hypothesis_strategies.py 0 additions, 3 deletionsswh/model/hypothesis_strategies.py
- swh/model/model.py 56 additions, 17 deletionsswh/model/model.py
- swh/model/tests/test_identifiers.py 181 additions, 158 deletionsswh/model/tests/test_identifiers.py
- swh/model/tests/test_model.py 61 additions, 1 deletionswh/model/tests/test_model.py
Loading
Please register or sign in to comment