Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ harness = []

[dependency-groups]
lint = [
"ruff==0.15.19",
"codespell==2.4.1",
"ruff==0.15.20",
"codespell==2.4.2",
"zizmor==1.26.1",
"ops[testing,tracing]",
"pyright~=1.1",
Expand Down Expand Up @@ -77,7 +77,7 @@ release = [
]
tiobe = [
"flake8==7.3.0",
"pylint==4.0.5",
"pylint==4.0.6",
]

[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import pytest


@pytest.fixture(autouse=True) # noqa: RUF076 # applies to every test in the suite
@pytest.fixture(autouse=True)
def setup_tracing(monkeypatch: pytest.MonkeyPatch):
"""Disable tracing for most tests."""
monkeypatch.setattr('ops.tracing', None)
2 changes: 1 addition & 1 deletion test/integration/test_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
_JUJU4_MARKED_ONE_XFAIL = False


@pytest.fixture(autouse=True) # noqa: RUF076 # gate every test in the module
@pytest.fixture(autouse=True)
def _skip_on_juju4(juju: jubilant.Juju):
"""Skip the whole module on Juju >= 4 until the upstream bug is fixed.

Expand Down
2 changes: 1 addition & 1 deletion testing/tests/test_e2e/test_relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _on_event(self, event: ops.EventBase) -> None:
Charm._call(event)


@pytest.fixture(autouse=True) # noqa: RUF076 # class-level state must be reset for every test
@pytest.fixture(autouse=True)
def reset_charm_state():
"""Reset class-level state before each test."""
Charm._call = None
Expand Down
Loading
Loading