1
0
Fork 0
mirror of https://github.com/shouptech/tempgopher.git synced 2026-02-03 16:49:42 +00:00

Add test for duplicates

This commit is contained in:
Emma 2018-10-02 13:25:00 -06:00
parent 9d283e36f6
commit e5484d5205
3 changed files with 58 additions and 0 deletions

23
tests/duplicate_alias.yml Normal file
View file

@ -0,0 +1,23 @@
sensors:
- id: 28-000008083108
alias: fermenter
hightemp: 8
lowtemp: 4
heatgpio: 5
heatinvert: true
heatminutes: 5
coolgpio: 17
coolinvert: false
coolminutes: 10
verbose: true
- id: 28-000008083109
alias: fermenter
hightemp: 8
lowtemp: 4
heatgpio: 5
heatinvert: true
heatminutes: 5
coolgpio: 17
coolinvert: false
coolminutes: 10
verbose: true

23
tests/duplicate_id.yml Normal file
View file

@ -0,0 +1,23 @@
sensors:
- id: 28-000008083108
alias: fermenter
hightemp: 8
lowtemp: 4
heatgpio: 5
heatinvert: true
heatminutes: 5
coolgpio: 17
coolinvert: false
coolminutes: 10
verbose: true
- id: 28-000008083108
alias: notduplicate
hightemp: 8
lowtemp: 4
heatgpio: 5
heatinvert: true
heatminutes: 5
coolgpio: 17
coolinvert: false
coolminutes: 10
verbose: true

12
tests/test_config.yml Normal file
View file

@ -0,0 +1,12 @@
sensors:
- id: 28-000008083108
alias: fermenter
hightemp: 8
lowtemp: 4
heatgpio: 5
heatinvert: true
heatminutes: 5
coolgpio: 17
coolinvert: false
coolminutes: 10
verbose: true