-
Notifications
You must be signed in to change notification settings - Fork 1
/
conftest.py
54 lines (42 loc) · 1.57 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
"""
Defines fixtures shared across test files
"""
from pathlib import Path
import pytest
from chameleon.core import ChameleonDataFrame, ChameleonDataFrameSet
@pytest.fixture
def files():
return {"old": Path("test/old.csv"), "new": Path("test/new.csv")}
@pytest.fixture
def cdf_set(files):
return ChameleonDataFrameSet(**files, use_api=False)
@pytest.fixture
def cdf0(files):
return ChameleonDataFrame()
@pytest.fixture
def cdf1(files):
return ChameleonDataFrame(
{
"id": ["w624284243", "w212013924", "w182144320"],
"url": [
"http://localhost:8111/load_object?new_layer=true&objects=w624284243",
"http://localhost:8111/load_object?new_layer=true&objects=w212013924",
"http://localhost:8111/load_object?new_layer=true&objects=w182144320",
],
"user": ["plamen", "plamen", "Admasawi"],
"timestamp": ["2020-03-30", "2020-04-18", "2020-01-06"],
"version": ["4", "9", "4"],
"changeset": ["82808003", "83746481", "79265089"],
"osmcha": [
"https://osmcha.mapbox.com/changesets/82808003",
"https://osmcha.mapbox.com/changesets/83746481",
"https://osmcha.mapbox.com/changesets/79265089",
],
"name": ["37", "Доростол", ""],
"highway": ["secondary", "primary", "tertiary"],
"old_ref": ["37", "2", "64"],
"new_ref": ["", "", ""],
"action": ["dropped", "dropped", "modified"],
},
mode="ref",
)