Skip to content

tests: get rid of test_clone #23

Open
@skshetry

Description

@skshetry

This clones a remote repo.

def test_clone(tmp_dir: TmpDir, matcher: Type[Matcher]):
progress = MagicMock()
url = "https://github.com/iterative/dvcyaml-schema"
Git.clone(url, "dir", progress=progress)
progress.assert_called_with(matcher.instance_of(GitProgressEvent))
assert (tmp_dir / "dir").exists()

We should replace this with tests testing:

  • clone with file://
  • clone local directory
  • clone with ssh
  • clone with http(s)
  • push_refspec with progress
  • clone with progress
  • fetch_refspec with progress

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions