Skip to content

Commit

Permalink
better fix not to change it all
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed Dec 6, 2024
1 parent b16d46a commit 9b6d2ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python/nistoar/midas/dbio/inmem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion python/tests/nistoar/midas/dbio/test_inmem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions python/tests/nistoar/midas/dbio/test_inmem_websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)


Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 9b6d2ec

Please sign in to comment.