コード例 #1
0
    def test_custom(self):
        hosting_services = tuple(list(HOSTING_SERVICES) + ['kiln'])
        repo_url = "http://example.kiln.com/"

        self.assertEqual(
            identify_hosting_service(repo_url,
                                     hosting_services=hosting_services),
            "kiln")
コード例 #2
0
 def test_gitorious(self):
     repo_url = "git://gitorious.org/gitorious/mainline.git"
     self.assertEqual(identify_hosting_service(repo_url), "gitorious")
     repo_url = "http://git.gitorious.org/gitorious/mainline.git"
     self.assertEqual(identify_hosting_service(repo_url), "gitorious")
コード例 #3
0
 def test_bitbucket(self):
     repo_url = "https://bitbucket/pydanny/static/"
     self.assertEqual(identify_hosting_service(repo_url), "bitbucket")
コード例 #4
0
 def test_github(self):
     repo_url = "[email protected]:pydanny/watdarepo.git"
     self.assertEqual(identify_hosting_service(repo_url), "github")
     repo_url = "https://github.com/pydanny/watdarepo.git"
     self.assertEqual(identify_hosting_service(repo_url), "github")
コード例 #5
0
 def test_gitlab(self):
     repo_url = "http://demo.gitlab.com/"
     self.assertEqual(identify_hosting_service(repo_url), "gitlab")
コード例 #6
0
ファイル: test_main.py プロジェクト: dnmellen/watdarepo
 def test_failure(self):
     with self.assertRaises(UnknownHostingService):
         identify_hosting_service("American Hotdogs!")
コード例 #7
0
 def test_failure(self):
     with self.assertRaises(UnknownHostingService):
         identify_hosting_service("American Hotdogs!")
コード例 #8
0
ファイル: test_main.py プロジェクト: dnmellen/watdarepo
    def test_custom(self):
        hosting_services = tuple(list(HOSTING_SERVICES) + ['kiln'])
        repo_url = "http://example.kiln.com/"

        self.assertEqual(identify_hosting_service(repo_url, hosting_services=hosting_services), "kiln")
コード例 #9
0
ファイル: test_main.py プロジェクト: dnmellen/watdarepo
 def test_bitbucket(self):
     repo_url = "https://bitbucket/pydanny/static/"
     self.assertEqual(identify_hosting_service(repo_url), "bitbucket")
コード例 #10
0
ファイル: test_main.py プロジェクト: dnmellen/watdarepo
 def test_gitorious(self):
     repo_url = "git://gitorious.org/gitorious/mainline.git"
     self.assertEqual(identify_hosting_service(repo_url), "gitorious")
     repo_url = "http://git.gitorious.org/gitorious/mainline.git"
     self.assertEqual(identify_hosting_service(repo_url), "gitorious")
コード例 #11
0
ファイル: test_main.py プロジェクト: dnmellen/watdarepo
 def test_gitlab(self):
     repo_url = "http://demo.gitlab.com/"
     self.assertEqual(identify_hosting_service(repo_url), "gitlab")
コード例 #12
0
ファイル: test_main.py プロジェクト: dnmellen/watdarepo
 def test_github(self):
     repo_url = "[email protected]:pydanny/watdarepo.git"
     self.assertEqual(identify_hosting_service(repo_url), "github")
     repo_url = "https://github.com/pydanny/watdarepo.git"
     self.assertEqual(identify_hosting_service(repo_url), "github")