Skip to content

Commit 1b84df1

Browse files
committed
ensure rdflib and dominate warnings are ignored when using task test
1 parent 02dbedb commit 1b84df1

4 files changed

Lines changed: 3 additions & 7 deletions

File tree

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ tasks:
2222
test:
2323
desc: Run tests
2424
cmds:
25-
- uv run pytest tests -rP
25+
- uv run pytest tests -rP -W "ignore:ConjunctiveGraph is deprecated, use Dataset instead.:DeprecationWarning:rdflib.plugins.parsers.jsonld" -W "ignore:There is no current event loop:DeprecationWarning:dominate.dom_tag"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ classifiers = [
2424
dependencies = [
2525
"rdflib>=7.6.0,<8.0.0",
2626
"Markdown>=3.3.7,<4",
27-
"dominate>=2.6.0,<3",
27+
"dominate>=2.9.1,<3",
2828
"html5lib>=1.1,<2",
2929
"httpx>=0.25.0,<1.0.0",
3030
"tqdm>=4.67.3",

tests/test_doc_html.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -643,11 +643,7 @@ def test_properties(fix_html):
643643
</div>"""
644644
e = de_space_html(expected)
645645
a = de_space_html(fix_html)
646-
open("expected.html", "w").write(e)
647-
open("actual.html", "w").write(a)
648646
assert e in a, "Properties section not generated correctly"
649-
Path("expected.html").unlink()
650-
Path("actual.html").unlink()
651647

652648

653649
def test_namespaces(fix_html):

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)