mirror of
https://github.com/cmur2/python-veml6070.git
synced 2025-06-26 12:30:19 +02:00
module: respect shutdown settings when writing command
- this fixes a serious flaw where until now this library never powered the sensor down - not noticable directly as the sensor still takes measurements but wastes power in between
This commit is contained in:
@ -7,6 +7,131 @@ from snapshottest import Snapshot
|
||||
|
||||
snapshots = Snapshot()
|
||||
|
||||
snapshots['TestVeml6070::test_disable 1'] = [
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
7
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
7
|
||||
)
|
||||
]
|
||||
|
||||
snapshots['TestVeml6070::test_enable 1'] = [
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
7
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
)
|
||||
]
|
||||
|
||||
snapshots['TestVeml6070::test_integration_time 1'] = [
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
2
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
3
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
15
|
||||
)
|
||||
]
|
||||
|
||||
snapshots['TestVeml6070::test_setup 1'] = [
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
7
|
||||
)
|
||||
]
|
||||
|
||||
snapshots['TestVeml6070::test_uva_light_intensity 1'] = [
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
7
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
),
|
||||
(
|
||||
'r',
|
||||
57,
|
||||
1
|
||||
),
|
||||
(
|
||||
'r',
|
||||
56,
|
||||
6
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
7
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
15
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
14
|
||||
),
|
||||
(
|
||||
'r',
|
||||
57,
|
||||
1
|
||||
),
|
||||
(
|
||||
'r',
|
||||
56,
|
||||
6
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
15
|
||||
)
|
||||
]
|
||||
|
||||
snapshots['TestVeml6070::test_uva_light_intensity_raw 1'] = [
|
||||
(
|
||||
'w',
|
||||
@ -16,7 +141,7 @@ snapshots['TestVeml6070::test_uva_light_intensity_raw 1'] = [
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
7
|
||||
),
|
||||
(
|
||||
'w',
|
||||
@ -36,131 +161,6 @@ snapshots['TestVeml6070::test_uva_light_intensity_raw 1'] = [
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
)
|
||||
]
|
||||
|
||||
snapshots['TestVeml6070::test_disable 1'] = [
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
)
|
||||
]
|
||||
|
||||
snapshots['TestVeml6070::test_enable 1'] = [
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
)
|
||||
]
|
||||
|
||||
snapshots['TestVeml6070::test_integration_time 1'] = [
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
2
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
2
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
14
|
||||
)
|
||||
]
|
||||
|
||||
snapshots['TestVeml6070::test_setup 1'] = [
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
)
|
||||
]
|
||||
|
||||
snapshots['TestVeml6070::test_uva_light_intensity 1'] = [
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
),
|
||||
(
|
||||
'r',
|
||||
57,
|
||||
1
|
||||
),
|
||||
(
|
||||
'r',
|
||||
56,
|
||||
6
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
6
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
14
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
14
|
||||
),
|
||||
(
|
||||
'r',
|
||||
57,
|
||||
1
|
||||
),
|
||||
(
|
||||
'r',
|
||||
56,
|
||||
6
|
||||
),
|
||||
(
|
||||
'w',
|
||||
56,
|
||||
14
|
||||
7
|
||||
)
|
||||
]
|
||||
|
Reference in New Issue
Block a user