summaryrefslogtreecommitdiffstats
path: root/lang/python/python-trove-classifiers/test.sh
blob: ee628a9066ef9a4aedb1e17e74d287a46858a7b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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