1
0
mirror of https://github.com/cmur2/python-veml6070.git synced 2025-06-26 12:30:19 +02:00

test: change to unified, ordered read/write log for stability

This commit is contained in:
cn
2018-03-14 01:43:24 +01:00
parent 555dbfce54
commit 38e7af46f6
2 changed files with 162 additions and 130 deletions

View File

@ -7,122 +7,160 @@ from snapshottest import Snapshot
snapshots = Snapshot()
snapshots['TestVeml6070::test_disable 1'] = {
'readlog': [
],
'writelog': [
(
'56',
[
6,
6,
6
]
)
]
}
snapshots['TestVeml6070::test_uva_light_intensity_raw 1'] = [
(
'w',
56,
6
),
(
'w',
56,
6
),
(
'w',
56,
6
),
(
'r',
57,
18
),
(
'r',
56,
52
),
(
'w',
56,
6
)
]
snapshots['TestVeml6070::test_enable 1'] = {
'readlog': [
],
'writelog': [
(
'56',
[
6,
6,
6
]
)
]
}
snapshots['TestVeml6070::test_disable 1'] = [
(
'w',
56,
6
),
(
'w',
56,
6
),
(
'w',
56,
6
)
]
snapshots['TestVeml6070::test_integration_time 1'] = {
'readlog': [
],
'writelog': [
(
'56',
[
2,
2,
14
]
)
]
}
snapshots['TestVeml6070::test_enable 1'] = [
(
'w',
56,
6
),
(
'w',
56,
6
),
(
'w',
56,
6
)
]
snapshots['TestVeml6070::test_setup 1'] = {
'readlog': [
],
'writelog': [
(
'56',
[
6,
6
]
)
]
}
snapshots['TestVeml6070::test_integration_time 1'] = [
(
'w',
56,
2
),
(
'w',
56,
2
),
(
'w',
56,
14
)
]
snapshots['TestVeml6070::test_uva_light_intensity 1'] = {
'readlog': [
(
'56',
[
6,
6
]
),
(
'57',
[
1,
1
]
)
],
'writelog': [
(
'56',
[
6,
6,
6,
6,
14,
14,
14
]
)
]
}
snapshots['TestVeml6070::test_setup 1'] = [
(
'w',
56,
6
),
(
'w',
56,
6
)
]
snapshots['TestVeml6070::test_uva_light_intensity_raw 1'] = {
'readlog': [
(
'56',
[
52
]
),
(
'57',
[
18
]
)
],
'writelog': [
(
'56',
[
6,
6,
6,
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
)
]