Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)