Example #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)
Example #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)
Example #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)
Example #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)
Example #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)
Example #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)
Example #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)
Example #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)
Example #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)
Example #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)