示例#1
0
    def test_walk_packages(self) -> None:
        assert_equal(set(walk_packages(["mypy.errors"])), {"mypy.errors"})

        assert_equal(set(walk_packages(["mypy.errors", "mypy.stubgen"])),
                     {"mypy.errors", "mypy.stubgen"})

        all_mypy_packages = set(walk_packages(["mypy"]))
        self.assertTrue(
            all_mypy_packages.issuperset({
                "mypy",
                "mypy.errors",
                "mypy.stubgen",
                "mypy.test",
                "mypy.test.helpers",
            }))
示例#2
0
    def test_walk_packages(self) -> None:
        assert_equal(
            set(walk_packages(["mypy.errors"])),
            {"mypy.errors"})

        assert_equal(
            set(walk_packages(["mypy.errors", "mypy.stubgen"])),
            {"mypy.errors", "mypy.stubgen"})

        all_mypy_packages = set(walk_packages(["mypy"]))
        self.assertTrue(all_mypy_packages.issuperset({
            "mypy",
            "mypy.errors",
            "mypy.stubgen",
            "mypy.test",
            "mypy.test.helpers",
        }))