Exemplo n.º 1
0
    def test_assemble_remote_path_10(self):
        repo_url = 'alex@path/to/repo:more_stuff'
        repo = Repo(repo_url)
        expected_url = 'alex@path/to/repo:more_stuff'

        self.assertEqual(repo.assemble_remote_path(), expected_url)
Exemplo n.º 2
0
    def test_assemble_remote_path_7(self):
        repo_url = 'ssh://user@path/to/repo:80/more_stuff'
        repo = Repo(repo_url)
        expected_url = 'ssh://user@path/to/repo:80/more_stuff'

        self.assertEqual(repo.assemble_remote_path(), expected_url)
Exemplo n.º 3
0
    def test_assemble_remote_path_9(self):
        repo_url = 'path/to/repo'
        repo = Repo(repo_url)
        expected_url = 'ssh://git@path/to/repo'

        self.assertEqual(repo.assemble_remote_path(), expected_url)
Exemplo n.º 4
0
    def test_assemble_remote_path_2(self):
        repo_url = '/path/to/repo'
        repo = Repo(repo_url)
        expected_url = 'file:///path/to/repo'

        self.assertEqual(repo.assemble_remote_path(), expected_url)
Exemplo n.º 5
0
    def test_assemble_remote_path_4(self):
        repo_url = 'http://path/to/repo'
        repo = Repo(repo_url)
        expected_url = 'http://path/to/repo.git'

        self.assertEqual(repo.assemble_remote_path(), expected_url)
Exemplo n.º 6
0
    def test_assemble_remote_path_10(self):
        repo_url = 'alex@path/to/repo:more_stuff'
        repo = Repo(repo_url)
        expected_url = 'alex@path/to/repo:more_stuff'

        self.assertEqual(repo.assemble_remote_path(), expected_url)
Exemplo n.º 7
0
    def test_assemble_remote_path_9(self):
        repo_url = 'path/to/repo'
        repo = Repo(repo_url)
        expected_url = 'ssh://git@path/to/repo'

        self.assertEqual(repo.assemble_remote_path(), expected_url)
Exemplo n.º 8
0
    def test_assemble_remote_path_7(self):
        repo_url = 'ssh://user@path/to/repo:80/more_stuff'
        repo = Repo(repo_url)
        expected_url = 'ssh://user@path/to/repo:80/more_stuff'

        self.assertEqual(repo.assemble_remote_path(), expected_url)
Exemplo n.º 9
0
    def test_assemble_remote_path_4(self):
        repo_url = 'http://path/to/repo'
        repo = Repo(repo_url)
        expected_url = 'http://path/to/repo.git'

        self.assertEqual(repo.assemble_remote_path(), expected_url)
Exemplo n.º 10
0
    def test_assemble_remote_path_2(self):
        repo_url = '/path/to/repo'
        repo = Repo(repo_url)
        expected_url = 'file:///path/to/repo'

        self.assertEqual(repo.assemble_remote_path(), expected_url)