Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog committed Jul 8, 2024
1 parent dbb8ed7 commit 9156b81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion brewtils/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ def _setup_garden_namespace(self):
"""
try:
garden = self._ez_client.get_config()["garden_name"]
ns = self._system.namespace or garden
ns = self._system.namespace or garden

self._system.namespace = ns
self._config.namespace = ns
Expand Down
4 changes: 3 additions & 1 deletion test/rest/publish_client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ def easy_client(monkeypatch):
def client():
return PublishClient(bg_host="localhost", bg_port=3000)


@pytest.fixture(autouse=True)
def empty_system():
brewtils.plugin._system = System()


class TestPublishClient(object):
def setup_config(self):
brewtils.plugin.CONFIG.garden = "garden"
Expand All @@ -37,7 +39,7 @@ def setup_config(self):
brewtils.plugin.CONFIG.instance_name = "foo"
brewtils.plugin.CONFIG.bg_host = "localhost"
brewtils.plugin.CONFIG.bg_port = "3000"

def test_publish(self, client):
assert client.publish(_topic="topic")

Expand Down

0 comments on commit 9156b81

Please sign in to comment.