def test_is_flit_false_if_no_build_backend(project_with_no_build_backend: Path): repo = Repo(owner="blah", name="test", local_path=project_with_no_build_backend) assert repo.is_flit() is False
def test_is_flit_false_on_non_flit_project(fake_poetry_project: Path): repo = Repo(owner="blah", name="test", local_path=fake_poetry_project) assert repo.is_flit() is False
def test_is_flit_false_if_no_pyproject_toml(): repo = Repo(owner="blah", name="test", local_path=Path("nowhere")) assert repo.is_flit() is False
def test_is_flit_true_on_valid_flit_project(fake_flit_project: Path): repo = Repo(owner="blah", name="test", local_path=fake_flit_project) assert repo.is_flit() is True