Ejemplo n.º 1
0
    def test_type_infos_with_different_names_mismatch(
            self, mypy_nodes: MypyNodeFactory) -> None:
        a_cls, _ = mypy_nodes.get_class()
        antoher_cls, _ = mypy_nodes.get_another_class()
        result = compare_symbols(a_cls, antoher_cls)

        assert result.match_result is MatchResult.MISMATCH
Ejemplo n.º 2
0
    def test_type_infos_with_same_name_match(
            self, mypy_nodes: MypyNodeFactory) -> None:
        cls, cls_reference = mypy_nodes.get_class()
        result = compare_symbols(cls, cls_reference)

        assert result.match_result is MatchResult.MATCH