diff options
| author | natsuoto <[email protected]> | 2026-07-10 17:38:06 +0530 |
|---|---|---|
| committer | natsuoto <[email protected]> | 2026-07-10 17:38:06 +0530 |
| commit | 1eb8282bac9b71d31311b1a014cc3c60e36ab596 (patch) | |
| tree | bbc24c05bd3d979b5c8cbd12af1d2897cd5087dc | |
| parent | aa9f38a9e0224261f9014daeb62bc66edf136f2f (diff) | |
| download | edify-1eb8282bac9b71d31311b1a014cc3c60e36ab596.tar.xz edify-1eb8282bac9b71d31311b1a014cc3c60e36ab596.zip | |
test: license.test.py asserts installed edify carries MIT license expression (#237)
| -rw-r--r-- | tests/license.test.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/license.test.py b/tests/license.test.py new file mode 100644 index 0000000..e46a01e --- /dev/null +++ b/tests/license.test.py @@ -0,0 +1,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.get("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 == [] |
