Hugoifier

hugoifier / tests / test_cloudflare.py
Blame History Raw 19 lines
1
"""Tests for utils.cloudflare."""
2
import unittest
3
4
from hugoifier.utils.cloudflare import configure_cloudflare
5
6
7
class TestConfigureCloudflare(unittest.TestCase):
8
def test_returns_complete_message(self):
9
result = configure_cloudflare("/some/path", "example.com")
10
self.assertIn("complete", result.lower())
11
12
def test_accepts_path_and_zone(self):
13
result = configure_cloudflare("/tmp/site", "zone-id-123")
14
self.assertIsInstance(result, str)
15
16
17
if __name__ == "__main__":
18
unittest.main()
19

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button