forked from lk-geimfari/mimesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconftest.py
executable file
·57 lines (35 loc) · 1.02 KB
/
conftest.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import pytest
import mimesis
from mimesis.locales import LIST_OF_LOCALES
locales = LIST_OF_LOCALES
platform = ['win32', 'linux']
@pytest.fixture
def seed():
return 'mimesis'
@pytest.fixture(params=locales)
def generic(request):
return mimesis.Generic(request.param)
@pytest.fixture(params=locales)
def address(request):
return mimesis.Address(request.param)
@pytest.fixture(params=locales)
def business(request):
return mimesis.Business(request.param)
@pytest.fixture(params=locales)
def dt(request):
return mimesis.Datetime(request.param)
@pytest.fixture(params=locales)
def food(request):
return mimesis.Food(request.param)
@pytest.fixture(params=locales)
def person(request):
return mimesis.Person(request.param)
@pytest.fixture(params=locales)
def science(request):
return mimesis.Science(request.param)
@pytest.fixture(params=locales)
def text(request):
return mimesis.Text(request.param)
@pytest.fixture(params=platform)
def path(request):
return mimesis.Path(request.param)