fix: rewrite tests

This commit is contained in:
aclist committed 2026-05-15 23:34:43 +09:00
1 parent 156c1f8ec4
commit 8fc7aa5165
3 files changed
+33 -11

No files matched your search

+14 -2
View File
@@ -1,5 +1,17 @@
def test_headings():
with open("CHANGELOG.md", "r") as f:
import pytest
from importlib import resources
from dzgui.const.constants import APP_NAME_LOWER, CHANGELOG_PATH
@pytest.fixture
def changelog():
path = resources.files(APP_NAME_LOWER).joinpath(CHANGELOG_PATH)
return path
def test_headings(changelog):
with open(changelog, "r") as f:
lines = f.readlines()
for line in lines:
if line.startswith("#"):