MCPcopy Index your code
hub / github.com/github/spec-kit / test_custom_default

Method test_custom_default

tests/test_extensions.py:196–199  ·  view source on GitHub ↗

Test custom default value.

(self)

Source from the content-addressed store, hash-verified

194 assert normalize_priority("") == 10
195
196 def test_custom_default(self):
197 """Test custom default value."""
198 assert normalize_priority(None, default=20) == 20
199 assert normalize_priority("invalid", default=1) == 1
200
201 def test_boolean_returns_default(self):
202 """Booleans fall back to the default rather than acting as int 0/1."""

Callers

nothing calls this directly

Calls 1

normalize_priorityFunction · 0.90

Tested by

no test coverage detected