refactor(clan/lib): move tests for persist.util into clan_lib
This commit is contained in:
@@ -3,6 +3,7 @@ from typing import Any
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from clan_cli.errors import ClanError
|
from clan_cli.errors import ClanError
|
||||||
|
|
||||||
from clan_lib.persist.util import (
|
from clan_lib.persist.util import (
|
||||||
calc_patches,
|
calc_patches,
|
||||||
delete_by_path,
|
delete_by_path,
|
||||||
@@ -25,7 +25,7 @@ clan_cli = [
|
|||||||
"templates/**/*",
|
"templates/**/*",
|
||||||
"vms/mimetypes/**/*",
|
"vms/mimetypes/**/*",
|
||||||
"webui/assets/**/*",
|
"webui/assets/**/*",
|
||||||
"flash/*.sh"
|
"flash/*.sh",
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
@@ -44,6 +44,12 @@ markers = ["impure", "with_core"]
|
|||||||
filterwarnings = "default::ResourceWarning"
|
filterwarnings = "default::ResourceWarning"
|
||||||
python_files = ["test_*.py", "*_test.py"]
|
python_files = ["test_*.py", "*_test.py"]
|
||||||
|
|
||||||
|
# TODO: cov seems to conflict with xdist
|
||||||
|
# [tool.coverage.run]
|
||||||
|
# branch = true
|
||||||
|
# source = ["clan_lib"]
|
||||||
|
# omit = ["*/tests/*", "*/test_*.py", "*/*_test.py", "*/conftest.py", "docs.py"]
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
python_version = "3.12"
|
python_version = "3.12"
|
||||||
warn_redundant_casts = true
|
warn_redundant_casts = true
|
||||||
@@ -51,5 +57,3 @@ disallow_untyped_calls = true
|
|||||||
disallow_untyped_defs = true
|
disallow_untyped_defs = true
|
||||||
no_implicit_optional = true
|
no_implicit_optional = true
|
||||||
exclude = "clan_cli.nixpkgs"
|
exclude = "clan_cli.nixpkgs"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user