feat: icon.name() (#213)

This commit is contained in:
Talley Lambert
2023-10-23 11:20:59 -04:00
committed by GitHub
parent 3efafd7aa8
commit bd6899133f
2 changed files with 9 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ def test_qiconify(qtbot: "QtBot", monkeypatch: "pytest.MonkeyPatch") -> None:
icon = QIconifyIcon("bi:alarm-fill", color="red", rotate=90)
assert icon.path.name.endswith(".svg")
assert icon.name() == "bi:alarm-fill"
btn = QPushButton()
qtbot.addWidget(btn)