Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9749396
D2963.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
646 B
Subscribers
None
D2963.id.diff
View Options
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
Details
Attached
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
Attached To
D2963: test: fix test_content_add_validation() for swh.model 0.0.64
Event Timeline
Log In to Comment