Skip to content

Commit

Permalink
Transformed the whole comment block of https://github.com/aboutcode-o…
Browse files Browse the repository at this point in the history
…rg/scancode-toolkit/blob/develop/tests/packagedcode/test_opam.py  in test function.

Signed-off-by: Shivam11702 <shivam.singh.05.09.03@gmail.com>
  • Loading branch information
Shivam11702 committed Jan 24, 2025
1 parent e795bc6 commit ae1ef40
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions tests/packagedcode/test_opam.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@

# Copyright (c) nexB Inc. and others. All rights reserved.
# ScanCode is a trademark of nexB Inc.
# SPDX-License-Identifier: Apache-2.0
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
# See https://github.com/nexB/scancode-toolkit for support or download.
# See https://aboutcode.org for more information about nexB OSS projects.
#
def test_license_info():
license_text = """
Copyright (c) nexB Inc. and others. All rights reserved.
ScanCode is a trademark of nexB Inc.
SPDX-License-Identifier: Apache-2.0
See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
See https://github.com/nexB/scancode-toolkit for support or download.
See https://aboutcode.org for more information about nexB OSS projects.
"""

assert "ScanCode is a trademark of nexB Inc." in license_text
assert "SPDX-License-Identifier: Apache-2.0" in license_text
assert "https://github.com/nexB/scancode-toolkit" in license_text
assert "http://www.apache.org/licenses/LICENSE-2.0" in license_text

import os

Expand Down

0 comments on commit ae1ef40

Please sign in to comment.