Skip to content
Snippets Groups Projects
Unverified Commit 6129d355 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

Remove type from origin_add calls

Origin model no longer allows types.

Related to f533f62bbf114cfcc29f7c72307c4dfbe99cf048
parent 49ea33ca
No related branches found
Tags v0.0.166
1 merge request!229indexer: Remove type from origin_add calls
# Copyright (C) 2017-2018 The Software Heritage developers
# Copyright (C) 2017-2020 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
......@@ -75,7 +75,6 @@ class OriginHead(unittest.TestCase):
def test_vcs_missing_snapshot(self):
self.indexer.storage.origin_add([{
'type': 'git',
'url': 'https://github.com/SoftwareHeritage/swh-indexer',
}])
self.indexer.run(
......@@ -114,7 +113,6 @@ class OriginHead(unittest.TestCase):
def test_ftp_missing_snapshot(self):
self.indexer.storage.origin_add([{
'type': 'ftp',
'url': 'rsync://ftp.gnu.org/gnu/foobar',
}])
self.indexer.run(
......@@ -133,7 +131,6 @@ class OriginHead(unittest.TestCase):
def test_deposit_missing_snapshot(self):
self.indexer.storage.origin_add([{
'type': 'deposit',
'url': 'https://forge.softwareheritage.org/source/foobar',
}])
self.indexer.run(
......
# Copyright (C) 2018-2019 The Software Heritage developers
# Copyright (C) 2018-2020 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
......@@ -71,7 +71,6 @@ def test_origin_metadata_indexer_missing_head(
idx_storage, storage, obj_storage):
storage.origin_add([{
'type': 'git',
'url': 'https://example.com'
}])
......@@ -89,7 +88,6 @@ def test_origin_metadata_indexer_partial_missing_head(
idx_storage, storage, obj_storage):
storage.origin_add([{
'type': 'git',
'url': 'https://example.com'
}])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment