Coverage for tests / unit / tools / pydoclint / test_fix_method.py: 100%
9 statements
« prev ^ index » next coverage.py v7.13.0, created at 2026-04-03 18:53 +0000
« prev ^ index » next coverage.py v7.13.0, created at 2026-04-03 18:53 +0000
1"""Tests for pydoclint plugin fix method."""
3from __future__ import annotations
5from pathlib import Path
7import pytest
9from lintro.tools.definitions.pydoclint import PydoclintPlugin
12def test_fix_raises_not_implemented(
13 pydoclint_plugin: PydoclintPlugin,
14 tmp_path: Path,
15) -> None:
16 """Fix method raises NotImplementedError.
18 Args:
19 pydoclint_plugin: The PydoclintPlugin instance to test.
20 tmp_path: Temporary directory path for test files.
21 """
22 test_file = tmp_path / "test_module.py"
23 test_file.write_text('"""Test module."""\n')
25 with pytest.raises(NotImplementedError):
26 pydoclint_plugin.fix([str(test_file)], {})