Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/tests/test_codemeta.py
# Copyright (C) 2018-2020 The Software Heritage developers | # Copyright (C) 2018-2020 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 | ||||
import pytest | import pytest | ||||
from swh.indexer.codemeta import CROSSWALK_TABLE, merge_documents, merge_values | from swh.indexer.codemeta import CROSSWALK_TABLE, merge_documents, merge_values | ||||
def test_crosstable(): | def test_crosstable(): | ||||
assert CROSSWALK_TABLE["NodeJS"] == { | assert CROSSWALK_TABLE["NodeJS"] == { | ||||
"repository": "http://schema.org/codeRepository", | "repository": "http://schema.org/codeRepository", | ||||
"os": "http://schema.org/operatingSystem", | "os": "http://schema.org/operatingSystem", | ||||
"cpu": "http://schema.org/processorRequirements", | "cpu": "http://schema.org/processorRequirements", | ||||
"engines": "http://schema.org/processorRequirements", | "engines": "http://schema.org/runtimePlatform", | ||||
"author": "http://schema.org/author", | "author": "http://schema.org/author", | ||||
"author.email": "http://schema.org/email", | "author.email": "http://schema.org/email", | ||||
"author.name": "http://schema.org/name", | "author.name": "http://schema.org/name", | ||||
"contributor": "http://schema.org/contributor", | "contributors": "http://schema.org/contributor", | ||||
"keywords": "http://schema.org/keywords", | "keywords": "http://schema.org/keywords", | ||||
"license": "http://schema.org/license", | "license": "http://schema.org/license", | ||||
"version": "http://schema.org/version", | "version": "http://schema.org/version", | ||||
"description": "http://schema.org/description", | "description": "http://schema.org/description", | ||||
"name": "http://schema.org/name", | "name": "http://schema.org/name", | ||||
"bugs": "https://codemeta.github.io/terms/issueTracker", | "bugs": "https://codemeta.github.io/terms/issueTracker", | ||||
"homepage": "http://schema.org/url", | "homepage": "http://schema.org/url", | ||||
} | } | ||||
▲ Show 20 Lines • Show All 230 Lines • Show Last 20 Lines |