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

module: add pytest for unit and snapshot testing with travis-ci

This commit is contained in:
cn
2018-03-14 00:39:10 +01:00
parent 8cfb2541b9
commit 2086f111f2
9 changed files with 244 additions and 1 deletions

View File

View File

@ -0,0 +1,128 @@
# -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots['TestVeml6070::test_disable 1'] = {
'readlog': [
],
'writelog': [
(
'56',
[
6,
6,
6
]
)
]
}
snapshots['TestVeml6070::test_enable 1'] = {
'readlog': [
],
'writelog': [
(
'56',
[
6,
6,
6
]
)
]
}
snapshots['TestVeml6070::test_integration_time 1'] = {
'readlog': [
],
'writelog': [
(
'56',
[
2,
2,
14
]
)
]
}
snapshots['TestVeml6070::test_setup 1'] = {
'readlog': [
],
'writelog': [
(
'56',
[
6,
6
]
)
]
}
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_uva_light_intensity_raw 1'] = {
'readlog': [
(
'56',
[
52
]
),
(
'57',
[
18
]
)
],
'writelog': [
(
'56',
[
6,
6,
6,
6
]
)
]
}