From 3aa968ed47dea994daff8d943e6132cb3eeadbc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20M=C3=BCller?= Date: Thu, 23 Jul 2020 16:07:44 +0200 Subject: [PATCH] fixed coverage checks --- .coveragerc | 9 +++------ test/test_parseFrequency.py | 4 +++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.coveragerc b/.coveragerc index 06411c9..7269f7e 100644 --- a/.coveragerc +++ b/.coveragerc @@ -5,19 +5,16 @@ omit = NanoVNASaver/Analysis/*.py NanoVNASaver/Calibration.py NanoVNASaver/Charts/*.py + NanoVNASaver/Controls/*.py NanoVNASaver/Hardware/*.py NanoVNASaver/Inputs.py - NanoVNASaver/Marker/Settings.py - NanoVNASaver/Marker/Values.py - NanoVNASaver/Marker/Widget.py - NanoVNASaver/Marker/__init__.py + NanoVNASaver/Marker/*.py NanoVNASaver/NanoVNASaver.py NanoVNASaver/Settings.py NanoVNASaver/SweepWorker.py NanoVNASaver/Windows/*.py - NanoVNASaver/__init__.py + **/__init__.py NanoVNASaver/__main__.py - NanoVNASaver/about.py [report] fail_under = 90.0 show_missing = True diff --git a/test/test_parseFrequency.py b/test/test_parseFrequency.py index d46c113..fe74c8f 100644 --- a/test/test_parseFrequency.py +++ b/test/test_parseFrequency.py @@ -60,6 +60,9 @@ class TestCases(unittest.TestCase): self.assertEqual(parse_frequency('123.kHz'), 123000) self.assertEqual(parse_frequency('123.MHz'), 123000000) self.assertEqual(parse_frequency('123.GHz'), 123000000000) + self.assertEqual(parse_frequency('123.KHz'), 123000) + self.assertEqual(parse_frequency('123.mHz'), 123000000) + self.assertEqual(parse_frequency('123.gHz'), 123000000000) def test_unusualSIUnits(self): ####################################################################### @@ -76,7 +79,6 @@ class TestCases(unittest.TestCase): self.assertEqual(parse_frequency('123ZHz'), 123000000000000000000000) self.assertEqual(parse_frequency('123aHz'), 0) self.assertEqual(parse_frequency('123fHz'), 0) - self.assertEqual(parse_frequency('123mHz'), 0) self.assertEqual(parse_frequency('123nHz'), 0) self.assertEqual(parse_frequency('123pHz'), 0) self.assertEqual(parse_frequency('123yHz'), 0)