Fix name of reversion field in new Tag table and add a test
This commit is contained in:
parent
114e2c3bf2
commit
e8ed43b46f
4 changed files with 19 additions and 3 deletions
|
@ -571,7 +571,7 @@ def test_torrent_info(registry_model):
|
|||
registry_model.set_torrent_info(layers[0].blob, 2, 'foo')
|
||||
|
||||
# Check the information we've set.
|
||||
torrent_info = pre_oci_model.get_torrent_info(layers[0].blob)
|
||||
torrent_info = registry_model.get_torrent_info(layers[0].blob)
|
||||
assert torrent_info is not None
|
||||
assert torrent_info.piece_length == 2
|
||||
assert torrent_info.pieces == 'foo'
|
||||
|
|
Reference in a new issue