oncall-engine/engine/apps/slack/tests
Vadim Stepanov e7950139f3
Fix flaky Slack test (#1841)
# What this PR does
Fix [flaky
test](https://github.com/grafana/oncall/actions/runs/4821277510/jobs/8586941639#step:5:706)
`test_get_user_groups_filter_by_handle` using `UniqueFaker` on
`SlackUserGroupFactory.handle` to make handles always unique.

Before:

```shell
>>> len(set([SlackUserGroupFactory().handle for _ in range(100)]))
93
```

After:

```shell
>>> len(set([SlackUserGroupFactory().handle for _ in range(100)]))
100
```


## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2023-04-27 17:41:36 +01:00
..
test_scenario_steps Refactor get_user_verbal_for_team_for_slack. (#809) 2023-03-07 10:09:37 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
conftest.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
factories.py Fix flaky Slack test (#1841) 2023-04-27 17:41:36 +01:00
test_create_message_blocks.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_parse_slack_usernames.py Schedules alpha fixes (#541) 2022-09-21 11:19:59 +01:00
test_populate_slack_channels.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_reset_slack.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
test_user_group.py Fix test 2023-02-02 14:28:37 +00:00