summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-09-08 23:56:25 +0200
committerNejc Habjan <hab.nejc@gmail.com>2021-09-08 23:56:25 +0200
commitf8abe2de00ea44447160a05b1927328c3e1806f0 (patch)
tree851109649f284b049dce38ee5d65cee3a9458c28
parent823628153ec813c4490e749e502a47716425c0f1 (diff)
downloadgitlab-chore/remove-issuesstatistics.tar.gz
refactor(objects): remove deprecated project.issuesstatisticschore/remove-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