From 9b6d2ec64e085147e7fc7a41dfae1c59d10c2f2e Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 6 Dec 2024 09:13:34 -0500 Subject: [PATCH] better fix not to change it all --- python/nistoar/midas/dbio/inmem.py | 2 +- python/tests/nistoar/midas/dbio/test_inmem.py | 2 +- python/tests/nistoar/midas/dbio/test_inmem_websocket.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python/nistoar/midas/dbio/inmem.py b/python/nistoar/midas/dbio/inmem.py index d43af91..c8b1389 100644 --- a/python/nistoar/midas/dbio/inmem.py +++ b/python/nistoar/midas/dbio/inmem.py @@ -139,7 +139,7 @@ class InMemoryDBClientFactory(base.DBClientFactory): clients it creates. """ - def __init__(self, config: Mapping, notification_server: Notifier = None, _dbdata = None): + def __init__(self, config: Mapping, _dbdata = None,notification_server: Notifier = None): """ Create the factory with the given configuration. diff --git a/python/tests/nistoar/midas/dbio/test_inmem.py b/python/tests/nistoar/midas/dbio/test_inmem.py index 3517ae3..c9ce84a 100644 --- a/python/tests/nistoar/midas/dbio/test_inmem.py +++ b/python/tests/nistoar/midas/dbio/test_inmem.py @@ -31,7 +31,7 @@ class TestInMemoryDBClientFactory(test.TestCase): def setUp(self): self.cfg = {"goob": "gurn"} self.fact = inmem.InMemoryDBClientFactory( - self.cfg,_dbdata= {"nextnum": {"hank": 2}}) + self.cfg,{"nextnum": {"hank": 2}}) def test_ctor(self): self.assertEqual(self.fact._cfg, self.cfg) diff --git a/python/tests/nistoar/midas/dbio/test_inmem_websocket.py b/python/tests/nistoar/midas/dbio/test_inmem_websocket.py index 5e8cfc7..a1ad6ce 100644 --- a/python/tests/nistoar/midas/dbio/test_inmem_websocket.py +++ b/python/tests/nistoar/midas/dbio/test_inmem_websocket.py @@ -69,7 +69,7 @@ def tearDownClass(cls): def setUp(self): self.cfg = {"goob": "gurn"} self.fact = inmem.InMemoryDBClientFactory( - self.cfg,self.notification_server, {"nextnum": {"hank": 2}}) + self.cfg, {"nextnum": {"hank": 2}},self.notification_server) def test_ctor(self): self.assertEqual(self.fact._cfg, self.cfg) @@ -127,7 +127,7 @@ def tearDownClass(cls): def setUp(self): self.cfg = {"default_shoulder": "mds3"} self.user = "nist0:ava1" - self.cli = inmem.InMemoryDBClientFactory({},self.notification_server).create_client( + self.cli = inmem.InMemoryDBClientFactory({},notification_server=self.notification_server).create_client( base.DMP_PROJECTS, self.cfg, self.user) @@ -520,7 +520,7 @@ async def asyncSetUp(self): # Initialize the InMemoryDBClientFactory with the notification_server self.cfg = {"default_shoulder": "mds3"} self.user = "nist0:ava1" - self.cli = inmem.InMemoryDBClientFactory({},self.notification_server).create_client( + self.cli = inmem.InMemoryDBClientFactory({},notification_server=self.notification_server).create_client( base.DMP_PROJECTS, self.cfg, self.user) async def asyncTearDown(self):