From ce8f04bd1aeaaf0cfa55b1859dbe450ba91d9fc9 Mon Sep 17 00:00:00 2001
From: dh00601 <dh00601@surrey.ac.uk>
Date: Wed, 29 Dec 2021 14:50:44 +0000
Subject: [PATCH] fixing tests for the functions file

---
 badges/test_coverage.svg              | 4 ++--
 binarycpython/tests/test_functions.py | 8 ++------
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/badges/test_coverage.svg b/badges/test_coverage.svg
index 9e1a50b1a..bc3407c38 100644
--- a/badges/test_coverage.svg
+++ b/badges/test_coverage.svg
@@ -15,7 +15,7 @@
     <g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
         <text x="31.5" y="15" fill="#010101" fill-opacity=".3">coverage</text>
         <text x="31.5" y="14">coverage</text>
-        <text x="80" y="15" fill="#010101" fill-opacity=".3">12%</text>
-        <text x="80" y="14">12%</text>
+        <text x="80" y="15" fill="#010101" fill-opacity=".3">23%</text>
+        <text x="80" y="14">23%</text>
     </g>
 </svg>
diff --git a/binarycpython/tests/test_functions.py b/binarycpython/tests/test_functions.py
index 924961a2e..4a75cc134 100644
--- a/binarycpython/tests/test_functions.py
+++ b/binarycpython/tests/test_functions.py
@@ -426,10 +426,7 @@ class test_get_help(unittest.TestCase):
         """
 
         output = get_help("kaasblokjes")
-        self.assertIsNone(output)
-
-    # def test_print(self):
-    #     output = get_help("M_1", print_help=True)
+        self.assertDictEqual(output, {})
 
 
 class test_get_help_all(unittest.TestCase):
@@ -540,8 +537,7 @@ class test_write_binary_c_parameter_descriptions_to_rst_file(unittest.TestCase):
             TMP_DIR,
             "test_write_binary_c_parameter_descriptions_to_rst_file_test_1.txt",
         )
-        output_1 = write_binary_c_parameter_descriptions_to_rst_file(output_name)
-        self.assertIsNone(output_1)
+        self.assertRaises(ValueError, write_binary_c_parameter_descriptions_to_rst_file, output_name)
 
     def test_checkfile(self):
         with Capturing() as output:
-- 
GitLab