Total Complexity | 1 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | import pytest |
||
2 | from users_for_testing import test_users |
||
3 | import random |
||
4 | |||
5 | |||
6 | @pytest.fixture |
||
7 | def random_users(): |
||
8 | """ |
||
9 | A pytest fixture to get a unique random user to use in testing |
||
10 | """ |
||
11 | users = list.copy(test_users) |
||
12 | random.shuffle(users) |
||
13 | return iter(users) |
||
14 |