From e82bdb3a5ba522500d26f097a4f8ec23e72c1e02 Mon Sep 17 00:00:00 2001 From: Simon Albinsson Date: Thu, 12 Apr 2018 22:50:42 +0000 Subject: [PATCH] Fixes some comments and messages --- sgp30/sgp30.py | 2 +- tests/test_sgp.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sgp30/sgp30.py b/sgp30/sgp30.py index afe7270..c4f912d 100644 --- a/sgp30/sgp30.py +++ b/sgp30/sgp30.py @@ -82,7 +82,7 @@ class Sgp30(): self.rw(_cmds.new_set_baseline(conf)) return True else: - print("Failed to load CRC") + print("Failed to load baseline, invalid data") return False def read_measurements(self): diff --git a/tests/test_sgp.py b/tests/test_sgp.py index 5a88221..50dbef8 100644 --- a/tests/test_sgp.py +++ b/tests/test_sgp.py @@ -41,7 +41,7 @@ class SimpleReadTests(unittest.TestCase): self.assertEqual(d.crc_ok,False) class TestBaselineMethods(unittest.TestCase): - """Basic test cases.""" + """Basic tests for the load/save baseline-methods""" def setUp(self): self.bus = MockSMBus() self.sgp=sgp30.sgp30.Sgp30(self.bus,baseline_filename="/tmp/sgp-crc-test")