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

Method test_create_status

ci/util/test_pio_package_messages.py:128–144  ·  view source on GitHub ↗

Test creating a DaemonStatus object.

(self)

Source from the content-addressed store, hash-verified

126 """Test DaemonStatus dataclass."""
127
128 def test_create_status(self):
129 """Test creating a DaemonStatus object."""
130 status = DaemonStatus(
131 state=DaemonState.INSTALLING,
132 message="Installing packages",
133 updated_at=1234567890.0,
134 installation_in_progress=True,
135 daemon_pid=9999,
136 caller_pid=12345,
137 )
138
139 assert status.state == DaemonState.INSTALLING
140 assert status.message == "Installing packages"
141 assert status.updated_at == 1234567890.0
142 assert status.installation_in_progress is True
143 assert status.daemon_pid == 9999
144 assert status.caller_pid == 12345
145
146 def test_to_dict(self):
147 """Test converting DaemonStatus to dictionary."""

Callers

nothing calls this directly

Calls 1

DaemonStatusClass · 0.90

Tested by

no test coverage detected