-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathconftest.py
More file actions
62 lines (58 loc) · 1.59 KB
/
Copy pathconftest.py
File metadata and controls
62 lines (58 loc) · 1.59 KB
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
from __future__ import annotations
from datetime import datetime
from typing import Any
import pytest
@pytest.fixture
def expected_data_sheet_null_strings() -> dict[str, list[Any]]:
return {
"FIRST_LABEL": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0],
"SECOND_LABEL": ["AA", "BB", "CC", "DD", "EE", "FF", "GG", "HH", "II", "JJ"],
"DATES_AND_NULLS": [
None,
None,
None,
datetime(2022, 12, 19, 0, 0),
datetime(2022, 8, 26, 0, 0),
datetime(2023, 5, 6, 0, 0),
datetime(2023, 3, 20, 0, 0),
datetime(2022, 8, 29, 0, 0),
None,
None,
],
"TIMESTAMPS_AND_NULLS": [
None,
None,
datetime(2023, 2, 18, 6, 13, 56, 730000),
datetime(2022, 9, 20, 20, 0, 7, 50000),
datetime(2022, 9, 24, 17, 4, 31, 236000),
None,
None,
None,
datetime(2022, 9, 14, 1, 50, 58, 390000),
datetime(2022, 10, 21, 17, 20, 12, 223000),
],
"INTS_AND_NULLS": [
2076.0,
2285.0,
39323.0,
None,
None,
None,
11953.0,
None,
30192.0,
None,
],
"FLOATS_AND_NULLS": [
141.02023312814603,
778.0655928608671,
None,
497.60307287584106,
627.446112513911,
None,
None,
None,
488.3509486743364,
None,
],
}