Checkpoint initial implementation

This commit is contained in:
Andrew Miner
2025-10-06 17:41:18 -06:00
parent 773e0a3d85
commit a8b6e6b15e
106 changed files with 3012 additions and 0 deletions
@@ -0,0 +1,20 @@
from pytest import fixture
from tungston.generator.datapack.blockstate import BlockState
# Fixtures #########################################################################################
@fixture(name="state")
def createBlockState():
yield BlockState("minecraft:button", {"waterlogged": "true"})
# Tests ############################################################################################
def test_asData(state):
assert state.asData() == {
"Name": "minecraft:button",
"Properties": {
"waterlogged": "true"
}
}