Skip to content

Improve backend/apps/slack test coverage #1802

@arkid15r

Description

@arkid15r

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

Currently we have (ses #613):

apps/slack/commands/board.py                                                       4      0      0      0 100.00%
apps/slack/commands/chapters.py                                                   10      0      2      0 100.00%
apps/slack/commands/command.py                                                    59     10     14      1  79.45%   26-31, 136->exit, 144-147, 157
apps/slack/commands/committees.py                                                  6      0      0      0 100.00%
apps/slack/commands/community.py                                                   5      0      0      0 100.00%
apps/slack/commands/contact.py                                                     4      0      0      0 100.00%
apps/slack/commands/contribute.py                                                 10      0      2      0 100.00%
apps/slack/commands/donate.py                                                      5      0      0      0 100.00%
apps/slack/commands/events.py                                                      8      2      0      0  75.00%   10-12
apps/slack/commands/gsoc.py                                                       26      0      6      0 100.00%
apps/slack/commands/jobs.py                                                        5      0      0      0 100.00%
apps/slack/commands/leaders.py                                                    13      0      0      0 100.00%
apps/slack/commands/news.py                                                        6      0      0      0 100.00%
apps/slack/commands/owasp.py                                                      22      1     10      1  93.75%   17
apps/slack/commands/policies.py                                                    5      0      0      0 100.00%
apps/slack/commands/projects.py                                                    6      0      0      0 100.00%
apps/slack/commands/sponsor.py                                                     4      0      0      0 100.00%
apps/slack/commands/sponsors.py                                                    7      0      0      0 100.00%
apps/slack/commands/staff.py                                                       7      0      0      0 100.00%
apps/slack/commands/users.py                                                       6      0      0      0 100.00%
apps/slack/common/constants.py                                                     3      0      0      0 100.00%
apps/slack/common/contribute.py                                                    7      0      0      0 100.00%
apps/slack/common/gsoc.py                                                         10      0      0      0 100.00%
apps/slack/common/handlers/chapters.py                                            35      1      8      2  93.02%   99->109, 116
apps/slack/common/handlers/committees.py                                          34      0      8      1  97.62%   93->102
apps/slack/common/handlers/contribute.py                                          34      1      8      2  92.86%   82->91, 98
apps/slack/common/handlers/projects.py                                            44      1     16      6  88.33%   84->92, 85->87, 87->89, 89->92, 117->127, 134
apps/slack/common/handlers/users.py                                               51     40     20      0  15.49%   35-138
apps/slack/common/presentation.py                                                  9      0      0      0 100.00%
apps/slack/constants.py                                                           33      0      0      0 100.00%
apps/slack/events/app_home_opened.py                                               6      0      0      0 100.00%
apps/slack/events/event.py                                                        90     22     24      4  70.18%   32-37, 42, 124, 133, 163-169, 182->195, 218, 222-225, 244, 245->242, 265
apps/slack/events/member_joined_channel/catch_all.py                               7      2      2      1  66.67%   22, 26
apps/slack/events/member_joined_channel/contribute.py                             17      0      0      0 100.00%
apps/slack/events/member_joined_channel/gsoc.py                                   18      0      0      0 100.00%
apps/slack/events/member_joined_channel/project_nest.py                           17      3      0      0  82.35%   27, 37, 53
apps/slack/events/team_join.py                                                    10      0      0      0 100.00%
apps/slack/events/url_verification.py                                              5      0      0      0 100.00%
apps/slack/management/commands/slack_set_conversation_sync_messages_flags.py      10     10      0      0   0.00%   3-43
apps/slack/management/commands/slack_sync_data.py                                 70      2     18      1  96.59%   76->56, 78-79
apps/slack/management/commands/slack_sync_messages.py                            139     42     40      6  67.60%   109-110, 159-180, 183->129, 187, 226, 245-268, 275->exit, 302->346, 317-328, 332-344
apps/slack/models/conversation.py                                                 55      1      4      0  98.31%   50
apps/slack/models/event.py                                                        39      2      4      0  95.35%   51-52
apps/slack/models/member.py                                                       38     17      2      0  52.50%   48, 52-58, 63, 68-78
apps/slack/models/message.py                                                      70     13      4      0  79.73%   54-63, 68, 80, 85, 90, 95
apps/slack/models/workspace.py                                                    19      1      0      0  94.74%   34
apps/slack/template_loader.py                                                      5      0      0      0 100.00%
apps/slack/utils.py                                                               81     17     26      4  78.50%   82->93, 121-123, 136-142, 156-162, 182-183, 211->177, 212->177
apps/slack/views.py                                                                9      9      0      0   0.00%   3-24

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

Are you going to work on implementing this?

  • Yes
  • No

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions