Page MenuHomeSoftware Heritage

D2963.id.diff
No OneTemporary

D2963.id.diff

diff --git a/swh/storage/tests/test_storage.py b/swh/storage/tests/test_storage.py
--- a/swh/storage/tests/test_storage.py
+++ b/swh/storage/tests/test_storage.py
@@ -230,7 +230,8 @@
with pytest.raises(StorageArgumentException, match='status'):
swh_storage.content_add([{**cont, 'status': 'absent'}])
- with pytest.raises(StorageArgumentException, match='status'):
+ with pytest.raises(
+ (ValueError, StorageArgumentException), match='status'):
swh_storage.content_add([{**cont, 'status': 'foobar'}])
with pytest.raises(StorageArgumentException, match="(?i)length"):

File Metadata

Mime Type
text/plain
Expires
Sun, Aug 24, 5:01 PM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3221691

Event Timeline