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:
0
tests/snapshots/__init__.py
Normal file
0
tests/snapshots/__init__.py
Normal file
128
tests/snapshots/snap_test_veml6070.py
Normal file
128
tests/snapshots/snap_test_veml6070.py
Normal 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
|
||||
]
|
||||
)
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user