コード例 #1
0
    def init_fs(fs: FakeFilesystem) -> None:
        # Fake as Linux so that all slashes in these test are forward
        fs.os = OSType.LINUX
        fs.path_separator = "/"
        fs.is_windows_fs = False
        fs.is_macos = False

        # Pre-create the output path, whereas it was not created before running
        # the detail file test above.
        fs.create_dir(path.join(OUTPUT_DIRECTORY, RUN_NAME))  # type: ignore
コード例 #2
0
 def init_fs(fs: FakeFilesystem) -> None:
     # Fake as Linux so that all slashes in these test are forward
     fs.os = OSType.LINUX
     fs.path_separator = "/"
     fs.is_windows_fs = False
     fs.is_macos = False