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