Skip to content

Improve backend/apps/api test coverage #2521

@arkid15r

Description

@arkid15r

Is your feature request related to a problem? Please describe.

Currently we have (see #613):

apps/api/decorators/cache.py                                                      26      0     10      1  97.22%   33->36
apps/api/internal/mutations/api_key.py                                            51      3      8      3  89.83%   47, 50, 53
apps/api/models/api_key.py                                                        56      6      4      0  86.67%   58-70
apps/api/rest/v0/chapter.py                                                       37      4      2      0  84.62%   73, 92-99
apps/api/rest/v0/committee.py                                                     34      4      2      0  83.33%   65, 84-94
apps/api/rest/v0/event.py                                                         32      4      2      0  82.35%   61, 80-83
apps/api/rest/v0/issue.py                                                         45     12      6      0  64.71%   82-92, 113-120
apps/api/rest/v0/label.py                                                         23      4      2      0  76.00%   61-66
apps/api/rest/v0/member.py                                                        43      4      2      0  86.67%   80, 99-102
apps/api/rest/v0/milestone.py                                                     49     12      6      0  67.27%   83-94, 117-124
apps/api/rest/v0/organization.py                                                  34      4      2      0  83.33%   72, 95-101
apps/api/rest/v0/pagination.py                                                    27     10      2      0  58.62%   33-51
apps/api/rest/v0/project.py                                                       38      4      2      0  85.00%   77, 100-107
apps/api/rest/v0/release.py                                                       43     12      6      0  63.27%   77-93, 114-121
apps/api/rest/v0/repository.py                                                    36      8      2      0  73.68%   70-75, 95-101
apps/api/rest/v0/sponsor.py                                                       38      4      2      0  85.00%   83, 102-105```

Describe the solution you'd like
Improve coverage to 90%+ target.

Are you going to work on implementing this?

  • Yes
  • No

Metadata

Metadata

Assignees

Type

No type

Projects

Status

In progress

Relationships

None yet

Development

No branches or pull requests

Issue actions