Skip to content

Add unit tests for _download_url? #1504

@pganssle

Description

@pganssle

Currently _download_git, _download_svn and _download_hg are all not getting hit by the test suite.

It will probably be useful to add unit tests that hit (via the public interface) those code paths.

I think the easiest way to get a useful version of this working is to mock out os.system and check that the correct system calls are made.

We can and possibly should also make integration tests that actually make the relevant system calls, but we can defer those later because they have some more dev-ops-y implications.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions