Add Arch-based Docker test setup, shallow clone mode support and pkgmgr tests (see ChatGPT conversation: https://chatgpt.com/share/693052a1-edd0-800f-a9d6-c154b8e7d8e0)

This commit is contained in:
Kevin Veen-Birkenbach
2025-12-03 16:09:42 +01:00
parent 71cf032506
commit c4395a4764
9 changed files with 484 additions and 31 deletions

19
tests/test_main.py Normal file
View File

@@ -0,0 +1,19 @@
# tests/test_main.py
import unittest
import main
class TestMainModule(unittest.TestCase):
def test_proxy_commands_defined(self):
"""
Basic sanity check: main.py should define PROXY_COMMANDS
with git/docker/docker compose entries.
"""
self.assertTrue(hasattr(main, "PROXY_COMMANDS"))
self.assertIn("git", main.PROXY_COMMANDS)
self.assertIn("docker", main.PROXY_COMMANDS)
self.assertIn("docker compose", main.PROXY_COMMANDS)
if __name__ == "__main__":
unittest.main()