MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_lib_path

Method test_lib_path

scripts/update_lib/tests/test_path.py:50–53  ·  view source on GitHub ↗

Test detecting Lib/ path.

(self)

Source from the content-addressed store, hash-verified

48 """Tests for is_lib_path function."""
49
50 def test_lib_path(self):
51 """Test detecting Lib/ path."""
52 self.assertTrue(is_lib_path(pathlib.Path("Lib/test/test_foo.py")))
53 self.assertTrue(is_lib_path(pathlib.Path("./Lib/test/test_foo.py")))
54
55 def test_cpython_path_not_lib(self):
56 """Test that cpython/Lib/ is not detected as lib path."""

Callers

nothing calls this directly

Calls 2

is_lib_pathFunction · 0.90
assertTrueMethod · 0.80

Tested by

no test coverage detected