ScottishCovidResponse / SCRCIssueTracking

Central issue tracking repository for all repos in the consortium
6 stars 0 forks source link

test_git_info fails if repo is cloned over ssh #729

Open ianhinder opened 4 years ago

ianhinder commented 4 years ago
________________________________________________________________________________________________________ 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 'git@github.com:ScottishCovidResponse/data_pipeline_api.git' == 'https://github.com/ScottishCovidResponse/data_pipeline_api.git'
E             - https://github.com/ScottishCovidResponse/data_pipeline_api.git
E             ? ^ ^^^^^^          ^
E             + git@github.com:ScottishCovidResponse/data_pipeline_api.git
E             ? ^^ ^          ^

tests/test_git_info.py:25: AssertionError
ianhinder commented 4 years ago

PR in https://github.com/ScottishCovidResponse/data_pipeline_api/pull/102.

github-actions[bot] commented 4 years ago

Heads up @mrow84 @bobturneruk - the "data pipeline api" label was applied to this issue.