[chirp_devel] [PATCH] Add Support for Settings UnitTest #3

Kosta Arvanitis
Wed Jan 28 23:26:07 PST 2015


# HG changeset patch
# User K. Arvanitis <kosta at alumni.uvic.ca>
# Date 1422516211 28800
#      Wed Jan 28 23:23:31 2015 -0800
# Node ID 611fe67f4a942610bb63aa66360d25baa3d4b64b
# Parent  b25606106a9c0cd78f3cc5f602475da64cde081d
[PATCH] Add Support for Settings UnitTest
Adding test coverage of the radio settings API.
Currently, all but one image passes the test (UV3R).
Feature #2235
diff -r b25606106a9c -r 611fe67f4a94 tests/run_tests
--- a/tests/run_tests Wed Jan 21 23:30:19 2015 -0800
+++ b/tests/run_tests Wed Jan 28 23:23:31 2015 -0800
@@ -520,8 +520,30 @@
         self.do_badname(rf)
 
         return []
+
 TESTS["Edges"] = TestCaseEdges
 
+
+class TestCaseSettings(TestCase):
+    def __str__(self):
+        return "Settings"
+
+    def do_get_settings(self, rf):
+        self._wrapper.do("get_settings")
+
+    def run(self):
+        rf = self._wrapper.do("get_features")
+
+        if not rf.has_settings:
+            raise TestSkippedError("Settings not supported")
+
+ self.do_get_settings(rf)
+
+        return []
+
+TESTS["Settings"] = TestCaseSettings
+
+
 class TestCaseBanks(TestCase):
     def __str__(self):
         return "Banks"
 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20150128/e779ba80/attachment-0001.html 


More information about the chirp_devel mailing list