Passed
Push — master ( 5696b4...a69b32 )
by manny
01:27
created

conftest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A random_users() 0 8 1
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