blob: d9c762962a3b47f644685c94b1eac3296a8b6f85 [file]
from tests.package.test_python import TestPythonPackageBase
class TestPythonServeStatic(TestPythonPackageBase):
__test__ = True
config = TestPythonPackageBase.config + \
"""
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_SERVESTATIC=y
"""
sample_scripts = ["tests/package/sample_python_servestatic.py"]
def run_sample_scripts(self):
self.assertRunOk(
"servestatic --help | grep -q 'Process static files'"
)
super().run_sample_scripts()