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

conftest.random_users()   A

Complexity

Conditions 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nop 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