Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/tests/storage/generate_data_test.py
# Copyright (C) 2018-2019 The Software Heritage developers | # Copyright (C) 2018-2022 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
from uuid import uuid1 | from uuid import uuid1 | ||||
from hypothesis.strategies import composite, one_of, sampled_from, sets, tuples, uuids | from hypothesis.strategies import composite, one_of, sampled_from, sets, tuples, uuids | ||||
▲ Show 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | for uuid, mimetype, encoding in _ids: | ||||
"encoding": encoding, | "encoding": encoding, | ||||
} | } | ||||
) | ) | ||||
return content_mimetypes | return content_mimetypes | ||||
TOOLS = [ | TOOLS = [ | ||||
{ | { | ||||
"tool_name": "universal-ctags", | |||||
"tool_version": "~git7859817b", | |||||
"tool_configuration": { | |||||
"command_line": "ctags --fields=+lnz --sort=no --links=no " | |||||
"--output-format=json <filepath>" | |||||
}, | |||||
}, | |||||
{ | |||||
"tool_name": "swh-metadata-translator", | "tool_name": "swh-metadata-translator", | ||||
"tool_version": "0.0.1", | "tool_version": "0.0.1", | ||||
"tool_configuration": {"type": "local", "context": "NpmMapping"}, | "tool_configuration": {"type": "local", "context": "NpmMapping"}, | ||||
}, | }, | ||||
{ | { | ||||
"tool_name": "swh-metadata-detector", | "tool_name": "swh-metadata-detector", | ||||
"tool_version": "0.0.1", | "tool_version": "0.0.1", | ||||
"tool_configuration": { | "tool_configuration": { | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |