Skip to content

Commit

Permalink
Update syrupy & other test dependencies
Browse files Browse the repository at this point in the history
Remove unused snapshots which is possible with syrupy-project/syrupy#892
resolved & also fixes the failing test suite.
  • Loading branch information
wbyoung committed Nov 2, 2024
1 parent 28c0001 commit a20bf81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 157 deletions.
6 changes: 3 additions & 3 deletions requirements.test.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
beautifulsoup4==4.12.3
pre-commit==3.7.1
pytest==8.2.0
pytest==8.3.1
pytest-cov==5.0.0
pytest-homeassistant-custom-component==0.13.135
syrupy==4.6.1
pytest-homeassistant-custom-component==0.13.162
syrupy==4.7.2
154 changes: 0 additions & 154 deletions tests/snapshots/test_services.ambr
Original file line number Diff line number Diff line change
@@ -1,136 +1,4 @@
# serializer version: 1
# name: test_service[cached0-2-get_hourly_history]
dict({
'history': list([
dict({
'gallons': 0,
'start': '2024-06-19T22:00:00-07:00',
}),
dict({
'gallons': 7.48,
'start': '2024-06-19T21:00:00-07:00',
}),
dict({
'gallons': 0,
'start': '2024-06-19T20:00:00-07:00',
}),
dict({
'gallons': 7.48,
'start': '2024-06-19T19:00:00-07:00',
}),
]),
})
# ---
# name: test_service[cached0-get_hourly_history]
dict({
'history': list([
dict({
'gallons': 0,
'start': '2024-06-19T22:00:00-07:00',
}),
dict({
'gallons': 7.48,
'start': '2024-06-19T21:00:00-07:00',
}),
dict({
'gallons': 0,
'start': '2024-06-19T20:00:00-07:00',
}),
dict({
'gallons': 7.48,
'start': '2024-06-19T19:00:00-07:00',
}),
]),
})
# ---
# name: test_service[cached1-1-get_hourly_history]
dict({
'history': list([
dict({
'gallons': 0,
'start': '2024-06-19T22:00:00-07:00',
}),
dict({
'gallons': 7.48,
'start': '2024-06-19T21:00:00-07:00',
}),
dict({
'gallons': 0,
'start': '2024-06-19T20:00:00-07:00',
}),
dict({
'gallons': 7.48,
'start': '2024-06-19T19:00:00-07:00',
}),
]),
})
# ---
# name: test_service[cached1-get_hourly_history]
dict({
'history': list([
dict({
'gallons': 0,
'start': '2024-06-19T22:00:00-07:00',
}),
dict({
'gallons': 7.48,
'start': '2024-06-19T21:00:00-07:00',
}),
dict({
'gallons': 0,
'start': '2024-06-19T20:00:00-07:00',
}),
dict({
'gallons': 7.48,
'start': '2024-06-19T19:00:00-07:00',
}),
]),
})
# ---
# name: test_service[cached2-1-get_hourly_history]
dict({
'history': list([
dict({
'gallons': 0,
'start': '2024-06-19T22:00:00-07:00',
}),
dict({
'gallons': 7.48,
'start': '2024-06-19T21:00:00-07:00',
}),
dict({
'gallons': 0,
'start': '2024-06-19T20:00:00-07:00',
}),
dict({
'gallons': 7.48,
'start': '2024-06-19T19:00:00-07:00',
}),
]),
})
# ---
# name: test_service[cached2-get_hourly_history]
dict({
'history': list([
dict({
'gallons': 0,
'start': '2024-06-19T22:00:00-07:00',
}),
dict({
'gallons': 7.48,
'start': '2024-06-19T21:00:00-07:00',
}),
dict({
'gallons': 0,
'start': '2024-06-19T20:00:00-07:00',
}),
dict({
'gallons': 7.48,
'start': '2024-06-19T19:00:00-07:00',
}),
]),
})
# ---
# name: test_service[end0-start0-cached0-2-get_hourly_history]
dict({
'history': list([
Expand Down Expand Up @@ -1301,25 +1169,3 @@
]),
})
# ---
# name: test_service[get_hourly_history]
dict({
'history': list([
dict({
'gallons': 0,
'start': '2024-06-19T22:00:00-07:00',
}),
dict({
'gallons': 7.48,
'start': '2024-06-19T21:00:00-07:00',
}),
dict({
'gallons': 0,
'start': '2024-06-19T20:00:00-07:00',
}),
dict({
'gallons': 7.48,
'start': '2024-06-19T19:00:00-07:00',
}),
]),
})
# ---

0 comments on commit a20bf81

Please sign in to comment.