Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog committed Dec 6, 2023
1 parent 6b09023 commit c408304
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
4 changes: 3 additions & 1 deletion brewtils/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ def client(
"""
if _wrapped is None:
return functools.partial(client, bg_name=bg_name, bg_version=bg_version, groups=groups, group=group) # noqa
return functools.partial(
client, bg_name=bg_name, bg_version=bg_version, groups=groups, group=group
) # noqa

# Assign these here so linters don't complain
_wrapped._bg_name = bg_name
Expand Down
18 changes: 9 additions & 9 deletions test/plugin_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ def ez_client(monkeypatch, bg_system, bg_instance, bg_logging_config):
def client():
return MagicMock(
name="client",
spec=["command", "_bg_commands", "_bg_name", "_bg_version","_groups"],
spec=["command", "_bg_commands", "_bg_name", "_bg_version", "_groups"],
_bg_commands=["command"],
_bg_name=None,
_bg_version=None,
_groups=[]
_groups=[],
)


Expand Down Expand Up @@ -129,8 +129,8 @@ def test_groups(self, client):
ca_verify=False,
logger=logger,
max_concurrent=1,
group = "GroupA",
groups = ["GroupB"]
group="GroupA",
groups=["GroupB"],
)

assert plugin._system.groups == ["GroupB", "GroupA"]
Expand All @@ -148,8 +148,8 @@ def test_kwargs(self, client, bg_system):
ca_verify=False,
logger=logger,
max_concurrent=1,
group = "GroupA",
groups = ["GroupB"]
group="GroupA",
groups=["GroupB"],
)

assert plugin._logger == logger
Expand Down Expand Up @@ -481,7 +481,7 @@ def test_system_exists(
commands=current_commands,
metadata={"foo": "bar"},
template=None,
groups=["GroupA"]
groups=["GroupA"],
)
ez_client.find_unique_system.return_value = existing_system

Expand All @@ -498,7 +498,7 @@ def test_system_exists(
icon_name=bg_system.icon_name,
display_name=bg_system.display_name,
template="<html>template</html>",
groups=bg_system.groups
groups=bg_system.groups,
)
# assert ez_client.create_system.return_value == plugin.system

Expand Down Expand Up @@ -528,7 +528,7 @@ def test_new_instance(self, plugin, ez_client, bg_system, bg_instance):
display_name=bg_system.display_name,
template="<html>template</html>",
add_instance=ANY,
groups=["GroupB","GroupA"],
groups=["GroupB", "GroupA"],
)
assert ez_client.update_system.call_args[1]["add_instance"].name == new_name

Expand Down

0 comments on commit c408304

Please sign in to comment.