Example #1
0
def test_is_setuptools(
    repo_folder_with_random_existing_files: Path, file: str, expect: bool
):

    repo = Repo(
        owner="me", name="test", local_path=repo_folder_with_random_existing_files
    )

    # Add in the required file to trigger
    repo_folder_with_random_existing_files.joinpath(file).touch()

    assert repo.is_setuptools() is expect
Example #2
0
def test_is_setuptools_pep621(project_with_setuptools_pep621_backend: Path):
    repo = Repo(
        owner="me", name="test", local_path=project_with_setuptools_pep621_backend
    )

    assert repo.is_setuptools() is True