-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathconftest.py
68 lines (41 loc) · 1.14 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
58
59
60
61
62
63
64
65
66
67
68
from datetime import date, time, timedelta
import pytest
@pytest.fixture
def input_duration_range():
return 'I need a desk for tomorrow from 2pm to 3pm'
@pytest.fixture
def input_christmas_eve():
return 'christmas eve'
@pytest.fixture
def input_sunday_night():
return 'Mary had spent Sunday night with us.'
@pytest.fixture
def input_duration():
return 'I need a desk for tomorrow from 2pm for 2 hours'
@pytest.fixture
def input_today():
return 'I have written a test today.'
@pytest.fixture
def input_spanish():
return 'Hoy he escrito una prueba.'
@pytest.fixture
def input_last_quarter():
return 'Deals closed last quarter!'
@pytest.fixture
def last_quarter():
return '2016-Q4'
@pytest.fixture(scope='module')
def tomorrow():
return date.today() + timedelta(days=1)
@pytest.fixture(scope='module')
def two_pm():
return time(hour=14)
@pytest.fixture(scope='module')
def three_pm():
return time(hour=15)
@pytest.fixture(scope='module')
def reference_date():
return date(2017, 1, 9)
@pytest.fixture(scope='module')
def sunday_night(reference_date):
return reference_date + timedelta(days=6)