From e93b323b691bf01dac3f4370881553847264a87e Mon Sep 17 00:00:00 2001 From: Carlos Ortiz-Salguero Date: Fri, 1 Nov 2024 09:48:00 -0500 Subject: [PATCH 1/2] Preliminary pushes for connection-object testing code. --- tests/brb/test_connection.py | 3 +++ {src/wipplpy/tests => tests}/test_placeholder.py | 0 2 files changed, 3 insertions(+) create mode 100644 tests/brb/test_connection.py rename {src/wipplpy/tests => tests}/test_placeholder.py (100%) diff --git a/tests/brb/test_connection.py b/tests/brb/test_connection.py new file mode 100644 index 0000000..0ec203a --- /dev/null +++ b/tests/brb/test_connection.py @@ -0,0 +1,3 @@ +""" +Tests for database-connection objects associated with the BRB device. +""" diff --git a/src/wipplpy/tests/test_placeholder.py b/tests/test_placeholder.py similarity index 100% rename from src/wipplpy/tests/test_placeholder.py rename to tests/test_placeholder.py From 14f5168403feb933b93de9a6564f61b64dedc602 Mon Sep 17 00:00:00 2001 From: Carlos Ortiz-Salguero Date: Thu, 27 Mar 2025 17:24:44 -0500 Subject: [PATCH 2/2] Minutiae edit for connection tests. --- src/wipplpy/brb/connection.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wipplpy/brb/connection.py b/src/wipplpy/brb/connection.py index d659d61..f1c453e 100644 --- a/src/wipplpy/brb/connection.py +++ b/src/wipplpy/brb/connection.py @@ -2,11 +2,11 @@ Create objects pertaining to accessing databases for the BRB device. """ -from WiPPLPy.modules.config_reader import MDSplusConfigReader -from WiPPLPy.modules.connection import MDSPlusConnection +from wipplpy.modules.config_reader import MDSplusConfigReader +from wipplpy.modules.connection import MDSplusConnection -class BRBConnection(MDSPlusConnection): +class BRBConnection(MDSplusConnection): """ Open the BRB-MDSplus database for a given shot number. """ @@ -35,5 +35,5 @@ def make_connection(self, shot_number): self._local_and_remote_connection( shot_number, self.config_reader.BRB_tree, - self.config_reader.BRB_remote_server, + self.config_reader.BRB_remote_server )