Spaces:
Paused
Paused
| # SPDX-License-Identifier: Apache-2.0 | |
| import os | |
| import pytest | |
| def test_dockerfile_exists(): | |
| """Test that Dockerfile exists and is valid.""" | |
| dockerfile_path = os.path.join(os.path.dirname(__file__), '..', 'Dockerfile') | |
| assert os.path.exists(dockerfile_path), "Dockerfile not found" | |
| def test_dockerfile_has_entrypoint(): | |
| """Test that Dockerfile has ENTRYPOINT or CMD.""" | |
| dockerfile_path = os.path.join(os.path.dirname(__file__), '..', 'Dockerfile') | |
| with open(dockerfile_path, 'r') as f: | |
| content = f.read() | |
| assert 'ENTRYPOINT' in content or 'CMD' in content, "Dockerfile missing ENTRYPOINT or CMD" | |