From e5484d5205612f19995c80af7574dfbbc1402c63 Mon Sep 17 00:00:00 2001 From: Mike Shoup Date: Tue, 2 Oct 2018 13:25:00 -0600 Subject: [PATCH] Add test for duplicates --- tests/duplicate_alias.yml | 23 +++++++++++++++++++++++ tests/duplicate_id.yml | 23 +++++++++++++++++++++++ tests/test_config.yml | 12 ++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 tests/duplicate_alias.yml create mode 100644 tests/duplicate_id.yml create mode 100644 tests/test_config.yml diff --git a/tests/duplicate_alias.yml b/tests/duplicate_alias.yml new file mode 100644 index 0000000..7019745 --- /dev/null +++ b/tests/duplicate_alias.yml @@ -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 diff --git a/tests/duplicate_id.yml b/tests/duplicate_id.yml new file mode 100644 index 0000000..f63867d --- /dev/null +++ b/tests/duplicate_id.yml @@ -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 diff --git a/tests/test_config.yml b/tests/test_config.yml new file mode 100644 index 0000000..f2ac9d2 --- /dev/null +++ b/tests/test_config.yml @@ -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