Skip to content

test_git_info fails if repo is cloned over ssh #729

@ianhinder

Description

@ianhinder
________________________________________________________________________________________________________ test_get_repo_info ________________________________________________________________________________________________________

    def test_get_repo_info():
        repo_info = get_repo_info(Path(__file__), "default_repo")
        assert isinstance(repo_info, RepoInfo)
        if git_installed:
>           assert (
                repo_info.uri
                == "https://github.com/ScottishCovidResponse/data_pipeline_api.git"
            )
E           AssertionError: assert '[email protected]:ScottishCovidResponse/data_pipeline_api.git' == 'https://github.com/ScottishCovidResponse/data_pipeline_api.git'
E             - https://github.com/ScottishCovidResponse/data_pipeline_api.git
E             ? ^ ^^^^^^          ^
E             + [email protected]:ScottishCovidResponse/data_pipeline_api.git
E             ? ^^ ^          ^

tests/test_git_info.py:25: AssertionError

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