File: test_external_document_ref_validator.py

package info (click to toggle)
python-spdx-tools 0.8.3-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,084 kB
  • sloc: python: 18,675; xml: 12,553; sh: 46; makefile: 7
file content (18 lines) | stat: -rw-r--r-- 639 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# SPDX-FileCopyrightText: 2022 spdx contributors
#
# SPDX-License-Identifier: Apache-2.0

from typing import List

from spdx_tools.spdx.validation.external_document_ref_validator import validate_external_document_ref
from spdx_tools.spdx.validation.validation_message import ValidationMessage
from tests.spdx.fixtures import external_document_ref_fixture


def test_valid_external_document_ref():
    external_document_ref = external_document_ref_fixture()
    validation_messages: List[ValidationMessage] = validate_external_document_ref(
        external_document_ref, "parent_id", "SPDX-2.3"
    )

    assert validation_messages == []