From f7f377118cea55d3946c52521dda762fbd77f09c Mon Sep 17 00:00:00 2001
From: Arnaud Watlet <arnaud.watlet@umons.ac.be>
Date: Thu, 30 Nov 2023 10:12:22 +0100
Subject: [PATCH] Updates tests

---
 test/tests.py | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)

diff --git a/test/tests.py b/test/tests.py
index bfffe705..797e619c 100644
--- a/test/tests.py
+++ b/test/tests.py
@@ -10,6 +10,14 @@ from ohmpi.hardware_system import OhmPiHardware
 from ohmpi.logging_setup import setup_loggers
 
 
+def test_i2c_devices_on_bus(i2c_addr, bus):
+    i2C_addresses_on_bus = [hex(k) for k in bus.scan()]
+    if i2c_addr in i2C_addresses_on_bus:
+        return True
+    else:
+        return False
+
+
 class OhmPiTests(unittest.TestCase):
     """
     OhmPiTests class .
@@ -25,9 +33,19 @@ class OhmPiTests(unittest.TestCase):
         self.exec_logger.info('Hardware configured...')
         self.exec_logger.info('OhmPi tests ready to start...')
 
-    def test_i2c_devices_on_bus(self):
-        self.test_i2c_mux_boards()
-        self.test_i2c_measurement_baord()
+    def test_connections(self):
+
+    def test_tx_connections(self):
+        i2c_addresses = self._hw.rx.connection
+
+    def test_rx(self):
+        pass
+
+    def test_pwr(self):
+        pass
+
+    def test_mux(self):
+        pass
 
     def test_i2c_mux_boards(self):
         try:
-- 
GitLab