"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "client/tests/filesystem_test.py" between
pyre-check-0.0.54.tar.gz and pyre-check-0.0.55.tar.gz

About: Pyre is a performant type checker for Python (ships with Pysa, a security focused static analysis tool).

filesystem_test.py  (pyre-check-0.0.54):filesystem_test.py  (pyre-check-0.0.55)
skipping to change at line 33 skipping to change at line 33
) )
from ..commands.command import __name__ as command_name from ..commands.command import __name__ as command_name
from ..filesystem import ( from ..filesystem import (
Filesystem, Filesystem,
MercurialBackedFilesystem, MercurialBackedFilesystem,
__name__ as filesystem_name, __name__ as filesystem_name,
_delete_symbolic_link, _delete_symbolic_link,
acquire_lock, acquire_lock,
acquire_lock_if_needed, acquire_lock_if_needed,
add_symbolic_link, add_symbolic_link,
expand_relative_path,
find_python_paths, find_python_paths,
remove_if_exists, remove_if_exists,
) )
from ..find_directories import FoundRoot from ..find_directories import FoundRoot
class FilesystemTest(unittest.TestCase): class FilesystemTest(unittest.TestCase):
def test_find_python_paths(self) -> None: def test_find_python_paths(self) -> None:
root = tempfile.mkdtemp() root = tempfile.mkdtemp()
# When there are no paths, returns empty list. # When there are no paths, returns empty list.
skipping to change at line 670 skipping to change at line 671
"ANALYSIS_ROOT", ["py", "pyi", "thrift"] "ANALYSIS_ROOT", ["py", "pyi", "thrift"]
), ),
{ {
"LOCAL_ROOT/a.py": "ANALYSIS_ROOT/a.py", "LOCAL_ROOT/a.py": "ANALYSIS_ROOT/a.py",
"LOCAL_ROOT/b.thrift": "ANALYSIS_ROOT/b.thrift", "LOCAL_ROOT/b.thrift": "ANALYSIS_ROOT/b.thrift",
"LOCAL_ROOT/subX/d.pyi": "ANALYSIS_ROOT/subX/d.pyi", "LOCAL_ROOT/subX/d.pyi": "ANALYSIS_ROOT/subX/d.pyi",
"LOCAL_ROOT/subX/e.py": "ANALYSIS_ROOT/subX/e.py", "LOCAL_ROOT/subX/e.py": "ANALYSIS_ROOT/subX/e.py",
"LOCAL_ROOT/subY/subZ/g.pyi": "ANALYSIS_ROOT/subY/subZ/g.pyi", "LOCAL_ROOT/subY/subZ/g.pyi": "ANALYSIS_ROOT/subY/subZ/g.pyi",
}, },
) )
def test_expand_relative_path__globs_are_unchanged(self) -> None:
self.assertEqual(expand_relative_path("foo", "bar/*/baz"), "foo/bar/*/ba
z")
self.assertEqual(
expand_relative_path("dontcare", "/absolute/path/*/foo"),
"/absolute/path/*/foo",
)
 End of changes. 2 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)