MCPcopy Create free account
hub / github.com/FastLED/FastLED / _make_config

Method _make_config

ci/tests/test_github_project_sync.py:99–116  ·  view source on GitHub ↗

Build a Config with sensible defaults, overriding specific fields.

(self, **overrides: Any)

Source from the content-addressed store, hash-verified

97 """Test status determination logic."""
98
99 def _make_config(self, **overrides: Any) -> Config:
100 """Build a Config with sensible defaults, overriding specific fields."""
101 defaults: dict[str, Any] = {
102 "project_owner": "FastLED",
103 "project_owner_type": "organization",
104 "project_number": 1,
105 "status_field": "Status",
106 "status_todo": "Triage",
107 "status_done": "Done",
108 "status_draft": "In Progress",
109 "date_field": "",
110 "event_name": "issues",
111 "event_action": "opened",
112 "item_node_id": "I_abc",
113 "is_draft": False,
114 }
115 defaults.update(overrides)
116 return Config(**defaults)
117
118 def test_closed_returns_done(self) -> None:
119 """Closing an issue or PR sets status to Done."""

Calls 2

ConfigClass · 0.90
updateMethod · 0.45

Tested by

no test coverage detected