Пример #1
0
def test_filesystem_git_has_file_integration__not_found():
    from pycobertura.filesystem import GitFileSystem

    fs = GitFileSystem(".", FIRST_PYCOBERTURA_COMMIT_SHA)

    dummy_source_file = "CHANGES.md"

    assert not fs.has_file(dummy_source_file)
Пример #2
0
def test_filesystem_git_has_file_integration():
    from pycobertura.filesystem import GitFileSystem

    fs = GitFileSystem(".", FIRST_PYCOBERTURA_COMMIT_SHA)

    # Files included in pycobertura's first commit.
    source_files = [
        "README.md",
        ".gitignore",
    ]

    for source_file in source_files:
        assert fs.has_file(source_file), source_file