コード例 #1
0
ファイル: test_github.py プロジェクト: umeditor/CumulusCI
 def test_validate_service(self):
     responses.add("GET", "https://api.github.com/rate_limit", status=401)
     with pytest.raises(GithubException):
         validate_service({"username": "******", "password": "******"})
コード例 #2
0
ファイル: test_github.py プロジェクト: tom-snyk/CumulusCI
 def test_validate_service(self):
     responses.add("GET", "/rate_limit", status=401)
     with self.assertRaises(GithubException):
         validate_service({"username": "******", "password": "******"})