aboutsummaryrefslogtreecommitdiff
path: root/tests/license.test.py
blob: 67dd252441ddfcd9d5ea3929373bbe8557a1b810 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""Acceptance tests pinning the license shape recorded in the installed edify metadata."""

from importlib.metadata import metadata


def test_installed_edify_metadata_declares_mit_license_expression():
    edify_metadata = metadata("edify")
    license_expression = edify_metadata["License-Expression"]
    assert license_expression == "MIT"


def test_installed_edify_metadata_carries_no_apache_license_classifier():
    edify_metadata = metadata("edify")
    classifiers = edify_metadata.get_all("Classifier") or []
    apache_classifiers = [c for c in classifiers if "Apache" in c]
    assert apache_classifiers == []