mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 15:12:48 +01:00
fix: rewrite tests
This commit is contained in:
1 parent
156c1f8ec4
commit
8fc7aa5165
3 files changed
+33
-11
No files matched your search
+14
-2
@@ -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("#"):
|
||||
|
||||
Reference in new issue
Block a user