示例#1
0
    def test_conversion_from_https_source_with_dotgit_elsewhere(self):
        source = "https://foo.gitlab.com/myorg/myproject"

        actual = distgit.convert_source_url_to_https(source)
        expected = "https://foo.gitlab.com/myorg/myproject"

        self.assertEqual(actual, expected)
示例#2
0
    def test_conversion_from_ssh_source(self):
        source = "[email protected]:myorg/myproject.git"

        actual = distgit.convert_source_url_to_https(source)
        expected = "https://github.com/myorg/myproject"

        self.assertEqual(actual, expected)
示例#3
0
    def test_conversion_from_https_source_with_dotgit_suffix(self):
        source = "https://github.com/myorg/myproject.git"

        actual = distgit.convert_source_url_to_https(source)
        expected = "https://github.com/myorg/myproject"

        self.assertEqual(actual, expected)