summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-09-08 23:56:25 +0200
committerJohn Villalovos <john@sodarock.com>2021-09-08 20:15:01 -0700
commitca7777e0dbb82b5d0ff466835a94c99e381abb7c (patch)
tree87934577811b253199df14b10ff3103758272995
parent4d7b848e2a826c58e91970a1d65ed7d7c3e07166 (diff)
downloadgitlab-ca7777e0dbb82b5d0ff466835a94c99e381abb7c.tar.gz
refactor(objects): remove deprecated project.issuesstatistics
BREAKING CHANGE: remove deprecated project.issuesstatistics in favor of project.issues_statistics
-rw-r--r--gitlab/v4/objects/projects.py1
-rw-r--r--tests/unit/objects/test_issues.py4
2 files changed, 0 insertions, 5 deletions
diff --git a/gitlab/v4/objects/projects.py b/gitlab/v4/objects/projects.py
index 8392dda..eb11137 100644
--- a/gitlab/v4/objects/projects.py
+++ b/gitlab/v4/objects/projects.py
@@ -135,7 +135,6 @@ class Project(RefreshMixin, SaveMixin, ObjectDeleteMixin, RepositoryMixin, RESTO
imports: ProjectImportManager
issues: ProjectIssueManager
issues_statistics: ProjectIssuesStatisticsManager
- issuesstatistics: ProjectIssuesStatisticsManager # Deprecated
jobs: ProjectJobManager
keys: ProjectKeyManager
labels: ProjectLabelManager
diff --git a/tests/unit/objects/test_issues.py b/tests/unit/objects/test_issues.py
index f8e5e77..a4e1454 100644
--- a/tests/unit/objects/test_issues.py
+++ b/tests/unit/objects/test_issues.py
@@ -86,7 +86,3 @@ def test_get_project_issues_statistics(project, resp_issue_statistics):
statistics = project.issues_statistics.get()
assert isinstance(statistics, ProjectIssuesStatistics)
assert statistics.statistics["counts"]["all"] == 20
-
- # Deprecated attribute
- deprecated = project.issuesstatistics.get()
- assert deprecated.statistics == statistics.statistics