feat: add outdoor snapping, terrain types and procedural textures
This commit is contained in:
1 parent
992c3e18f2
commit
d8cf076019
30 files changed
+2251
-1549
No files matched your search
@@ -399,3 +399,12 @@ def test_outdoor_area_opacity() -> None:
|
||||
for bad in (0, 0.05, 1.5):
|
||||
with pytest.raises(vol.Invalid):
|
||||
OUTDOOR_SCHEMA({**base, "opacity": bad})
|
||||
|
||||
|
||||
@pytest.mark.parametrize("kind", ["street", "sidewalk", "gravel", "river", "stream"])
|
||||
def test_new_outdoor_surfaces(kind: str) -> None:
|
||||
from custom_components.nextfloor.schema import OUTDOOR_SCHEMA
|
||||
|
||||
data = {"id": "outside", "type": kind, "points": [[0, 0], [4.03, 0], [4, 3]], "slope": 0.2, "opacity": 0.4}
|
||||
result = OUTDOOR_SCHEMA(data)
|
||||
assert all(result[key] == value for key, value in data.items())
|
||||
Reference in new issue
Block a user