Release 1.0.2

This commit is contained in:
2026-07-07 16:42:15 +01:00
parent ac678e8dce
commit ceba71927d
7 changed files with 41 additions and 4 deletions

View File

@@ -31,12 +31,22 @@ def dpg_context() -> Generator[None]:
def test_public_exports_and_version() -> None:
assert dpgg.__version__ == "1.0.1"
assert dpgg.__version__ == "1.0.2"
assert files("dpg_gauges").joinpath("py.typed").is_file()
for name in dpgg.__all__:
assert hasattr(dpgg, name)
def test_gauge_creation_supports_explicit_parent(dpg_context: None) -> None:
dpg.add_window(tag="late_parent", label="Late Parent")
dpgg.analog_gauge(tag="late_gauge", parent="late_parent", width=180, height=180)
state = get_gauge_state("late_gauge")
assert state.config.parent == "late_parent"
assert dpg.get_item_parent(state.container_tag) == "late_parent"
def test_unknown_duplicate_and_deleted_gauge_errors() -> None:
with pytest.raises(GaugeNotFoundError):
dpgg.set_value("missing", 1)