コード例 #1
0
ファイル: test_projects.py プロジェクト: BabisK/python-taiga
 def test_issues_stats(self, mock_requestmaker_get):
     rm = RequestMaker('/api/v1', 'fakehost', 'faketoken')
     project = Project(rm, id=1)
     project.issues_stats()
     mock_requestmaker_get.assert_called_with(
         '/{endpoint}/{id}/issues_stats',
         endpoint='projects', id=1
     )
コード例 #2
0
 def test_issues_stats(self, mock_requestmaker_get):
     rm = RequestMaker('/api/v1', 'fakehost', 'faketoken')
     project = Project(rm, id=1)
     project.issues_stats()
     mock_requestmaker_get.assert_called_with(
         '/{endpoint}/{id}/issues_stats',
         endpoint='projects', id=1
     )
コード例 #3
0
 def test_issues_stats(self, mock_requestmaker_get):
     rm = RequestMaker("/api/v1", "fakehost", "faketoken")
     project = Project(rm, id=1)
     project.issues_stats()
     mock_requestmaker_get.assert_called_with(
         "/{endpoint}/{id}/issues_stats", endpoint="projects", id=1)