Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P604
Minimal failing test for release_add
Active
Public
Actions
Authored by
olasd
on Mar 4 2020, 3:53 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
diff --git a/swh/storage/tests/test_storage.py b/swh/storage/tests/test_storage.py
index c68f28c..20959fc 100644
--- a/swh/storage/tests/test_storage.py
+++ b/swh/storage/tests/test_storage.py
@@ -1087,6 +1087,12 @@ class TestStorage:
swh_storage.refresh_stat_counters()
assert swh_storage.stat_counters()['release'] == 2
+ def test_release_add_same_twice(self, swh_storage):
+ result = swh_storage.release_add([data.release, data.release])
+
+ assert list(result) == ['release:add']
+ assert 1 <= result['release:add'] <= 2
+
def test_release_add_from_generator(self, swh_storage):
def _rel_gen():
yield data.release
Event Timeline
olasd
edited the content of this paste.
(Show Details)
Mar 4 2020, 3:53 PM
2020-03-04 15:53:58 (UTC+1)
olasd
changed the title of this paste from untitled to
Minimal failing test for release_add
.
olasd
updated the paste's language from
autodetect
to
diff
.
Log In to Comment