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

Method test_invalid_archive_extension

ci/tests/test_package.py:119–134  ·  view source on GitHub ↗

Test invalid archive extension validation

(self)

Source from the content-addressed store, hash-verified

117 assert platform.size_mb == 50000000 / (1024 * 1024)
118
119 def test_invalid_archive_extension(self) -> None:
120 """Test invalid archive extension validation"""
121 with pytest.raises(ValidationError):
122 Platform(
123 name="Test Platform",
124 architecture="test",
125 version="1.0.0",
126 category="Test",
127 url="https://example.com/file.txt", # type: ignore
128 archiveFileName="file.txt", # Invalid extension
129 checksum="SHA-256:1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
130 size=50.0, # type: ignore
131 boards=[],
132 toolsDependencies=[],
133 help=Help(online="https://example.com"), # type: ignore
134 )
135
136
137class TestPackageIndexParser:

Callers

nothing calls this directly

Calls 2

PlatformClass · 0.90
HelpClass · 0.90

Tested by

no test coverage detected