Files
packages/lang/python/python-trove-classifiers/test.sh
2026-04-03 09:38:08 +03:00

21 lines
542 B
Bash
Executable File

#!/bin/sh
[ "$1" = python3-trove-classifiers ] || exit 0
python3 - << 'EOF'
from trove_classifiers import classifiers, sorted_classifiers
# Check that the classifiers set is non-empty
assert len(classifiers) > 0
# Check a few well-known classifiers exist
assert "Programming Language :: Python :: 3" in classifiers
assert "License :: OSI Approved :: MIT License" in classifiers
assert "Operating System :: OS Independent" in classifiers
# sorted_classifiers should be a sorted list
assert sorted_classifiers == sorted(classifiers)
EOF