Skip to content

Commit c03890b

Browse files
committed
add missing test module docstrings, correct imports
1 parent cc15a67 commit c03890b

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

pyformlang/cfg/tests/test_recursive_decent_parser.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# pylint: disable=missing-module-docstring
2-
# pylint: disable=missing-class-docstring
3-
# pylint: disable=missing-function-docstring
1+
"""Tests for recursive top-down parser."""
2+
3+
import pytest
4+
45
from pyformlang.cfg import CFG, Variable, Terminal
56
from pyformlang.cfg.recursive_decent_parser import (
67
RecursiveDecentParser,
78
NotParsableError,
89
)
9-
import pytest
1010

1111

1212
@pytest.fixture

pyformlang/fcfg/tests/test_fcfg.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
"""Test a FCFG."""
1+
"""Tests for FCFG."""
2+
3+
import pytest
24

35
from pyformlang.cfg import Variable, Terminal, Production
46
from pyformlang.cfg import DerivationDoesNotExistError
@@ -8,7 +10,6 @@
810
from pyformlang.fcfg.feature_production import FeatureProduction
911
from pyformlang.fcfg.feature_structure import FeatureStructure
1012
from pyformlang.fcfg.state import State, StateProcessed
11-
import pytest
1213

1314

1415
@pytest.fixture

pyformlang/fcfg/tests/test_feature_structure.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
"""Testing of the feature structure."""
22

3+
import pytest
4+
35
from pyformlang.fcfg.feature_structure import (
46
FeatureStructure,
57
PathDoesNotExistError,
68
ContentAlreadyExistsError,
79
FeatureStructuresNotCompatibleError,
810
)
9-
import pytest
1011

1112

1213
def _get_agreement_subject_number_person():

pyformlang/pda/tests/test_pda.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""Tests the PDA."""
22

3-
import pytest
43
from os import path
54

5+
import pytest
6+
67
from pyformlang.pda import PDA, State, StackSymbol, Symbol, Epsilon
78
from pyformlang.cfg import Terminal, Epsilon as CFGEpsilon
89
from pyformlang.finite_automaton import DeterministicFiniteAutomaton

0 commit comments

Comments
 (0)