Hugoifier
| 6272677… | lmata | 1 | """Tests for utils.deploy.""" |
| 48176db… | ragelink | 2 | import unittest |
| 6272677… | lmata | 3 | |
| 91515c0… | lmata | 4 | from hugoifier.utils.deploy import deploy |
| 6272677… | lmata | 5 | |
| 48176db… | ragelink | 6 | |
| 48176db… | ragelink | 7 | class TestDeploy(unittest.TestCase): |
| 6272677… | lmata | 8 | def test_returns_complete_message(self): |
| 6272677… | lmata | 9 | result = deploy("/some/path", "example.com") |
| 6272677… | lmata | 10 | self.assertIn("complete", result.lower()) |
| 6272677… | lmata | 11 | |
| 6272677… | lmata | 12 | def test_accepts_path_and_zone(self): |
| 6272677… | lmata | 13 | result = deploy("/tmp/site", "zone-id-123") |
| 6272677… | lmata | 14 | self.assertIsInstance(result, str) |
| 6272677… | lmata | 15 | |
| 6272677… | lmata | 16 | |
| 6272677… | lmata | 17 | if __name__ == "__main__": |
| 6272677… | lmata | 18 | unittest.main() |