Skip to content

Commit dfb0a49

Browse files
authored
Use syrupy (#167)
1 parent 94939d7 commit dfb0a49

File tree

4 files changed

+109
-52
lines changed

4 files changed

+109
-52
lines changed

poetry.lock

Lines changed: 17 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ python = "^3.10"
2929
aiohttp = ">=3.0.0"
3030
yarl = ">=1.6.0"
3131
pydantic = ">=1.10.8"
32+
syrupy = "^4.5.0"
3233

3334
[tool.poetry.group.dev.dependencies]
3435
aresponses = "2.1.6"
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# serializer version: 1
2+
# name: test_states
3+
dict({
4+
'states': list([
5+
dict({
6+
'barometric_altitude': 2217.42,
7+
'callsign': 'UAL421 ',
8+
'category': <AircraftCategory.LARGE: 4>,
9+
'geo_altitude': 2194.56,
10+
'icao24': 'ab1644',
11+
'last_contact': 1683488743,
12+
'latitude': 42.5372,
13+
'longitude': -71.1656,
14+
'on_ground': False,
15+
'origin_country': 'United States',
16+
'position_source': <PositionSource.ADSB: 0>,
17+
'sensors': None,
18+
'special_purpose_indicator': False,
19+
'time_position': 1683488743,
20+
'transponder_code': None,
21+
'true_track': 342.17,
22+
'velocity': 137.8,
23+
'vertical_rate': 13.0,
24+
}),
25+
dict({
26+
'barometric_altitude': None,
27+
'callsign': 'LPE2264 ',
28+
'category': <AircraftCategory.NO_ADS_INFORMATION: 1>,
29+
'geo_altitude': None,
30+
'icao24': 'e8027e',
31+
'last_contact': 1683488722,
32+
'latitude': -12.0115,
33+
'longitude': -77.1296,
34+
'on_ground': True,
35+
'origin_country': 'Chile',
36+
'position_source': <PositionSource.ADSB: 0>,
37+
'sensors': None,
38+
'special_purpose_indicator': False,
39+
'time_position': 1683488479,
40+
'transponder_code': None,
41+
'true_track': 149.16,
42+
'velocity': 83.29,
43+
'vertical_rate': 9.1,
44+
}),
45+
dict({
46+
'barometric_altitude': 4335.78,
47+
'callsign': 'LPE2392 ',
48+
'category': <AircraftCategory.NO_ADS_INFORMATION: 1>,
49+
'geo_altitude': None,
50+
'icao24': 'e8027d',
51+
'last_contact': 1683488743,
52+
'latitude': -11.905,
53+
'longitude': -76.9275,
54+
'on_ground': False,
55+
'origin_country': 'Chile',
56+
'position_source': <PositionSource.ADSB: 0>,
57+
'sensors': None,
58+
'special_purpose_indicator': False,
59+
'time_position': 1683488743,
60+
'transponder_code': None,
61+
'true_track': 332.17,
62+
'velocity': 187.32,
63+
'vertical_rate': 10.4,
64+
}),
65+
dict({
66+
'barometric_altitude': 701.04,
67+
'callsign': 'N28CN ',
68+
'category': <AircraftCategory.GLIDER: 9>,
69+
'geo_altitude': 685.8,
70+
'icao24': 'a2cbe1',
71+
'last_contact': 1683488743,
72+
'latitude': 44.9762,
73+
'longitude': -93.9953,
74+
'on_ground': False,
75+
'origin_country': 'United States',
76+
'position_source': <PositionSource.ADSB: 0>,
77+
'sensors': None,
78+
'special_purpose_indicator': False,
79+
'time_position': 1683488743,
80+
'transponder_code': None,
81+
'true_track': 293.15,
82+
'velocity': 73.29,
83+
'vertical_rate': -4.55,
84+
}),
85+
]),
86+
'time': 1683488744,
87+
})
88+
# ---

0 commit comments

Comments
 (0)