chore: initialize containerized Python learning workbook (2026 DevOps/SRE)

This commit is contained in:
soda64 committed 2026-11-30 22:55:56 +01:00
commit ae4c421815
63 files changed
+1273

No files matched your search

@@ -0,0 +1,14 @@
import pytest
from testing_ex import FeatureFlagService, InMemoryKvStore
@pytest.mark.parametrize(
("raw_value", "expected"),
[("true", True), ("TRUE", True), ("1", True), ("false", False), ("0", False), (None, False)],
)
def test_feature_flag_service_with_in_memory_fake(raw_value: str | None, expected: bool) -> None:
store = InMemoryKvStore()
if raw_value is not None:
store.set("new_ui", raw_value)
svc = FeatureFlagService(store)
assert svc.is_enabled("new_ui") is expected