Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9338272
test_tasks.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
733 B
Subscribers
None
test_tasks.py
View Options
# Copyright (C) 2019 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
def
test_debian_loader
(
mocker
,
swh_app
,
celery_session_worker
,
swh_config
):
mock_loader
=
mocker
.
patch
(
"swh.loader.package.debian.loader.DebianLoader.load"
)
mock_loader
.
return_value
=
{
"status"
:
"eventful"
}
res
=
swh_app
.
send_task
(
"swh.loader.package.debian.tasks.LoadDebian"
,
kwargs
=
{
"url"
:
"some-url"
,
"date"
:
"some-date"
,
"packages"
:
{}},
)
assert
res
res
.
wait
()
assert
res
.
successful
()
assert
res
.
result
==
{
"status"
:
"eventful"
}
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Jul 4 2025, 8:40 AM (7 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3301154
Attached To
rDLDBASE Generic VCS/Package Loader
Event Timeline
Log In to Comment