Skip to content

Commit

Permalink
Updating testing
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog committed Oct 31, 2023
1 parent 4c42ca3 commit 95f4f37
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion brewtils/rest/publish_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from brewtils.rest.easy_client import EasyClient


class PublishClient(Object):
class PublishClient(object):
"""High-level client for publishing requests on Beer-garden topics.
**Topics are internal routing values for Beer Garden. These are not RabbitMQ/Pika topics.**
Expand Down
5 changes: 5 additions & 0 deletions brewtils/test/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def nested_parameter_dict():
"regex": None,
"form_input_type": None,
"type_info": {},

}


Expand Down Expand Up @@ -170,6 +171,7 @@ def command_dict(parameter_dict, system_id):
"template": "<html></html>",
"icon_name": "icon!",
"metadata": {"meta": "data"},
"topics": [],
}


Expand Down Expand Up @@ -287,6 +289,7 @@ def child_request_dict(ts_epoch):
"namespace": "ns",
"command": "say",
"id": "58542eb571afd47ead90d25f",
"is_event": False,
"parameters": {},
"comment": "bye!",
"output": "nested output",
Expand Down Expand Up @@ -324,6 +327,7 @@ def parent_request_dict(ts_epoch):
"namespace": "ns",
"command": "say",
"id": "58542eb571afd47ead90d25d",
"is_event": False,
"parent": None,
"parameters": {},
"comment": "bye!",
Expand Down Expand Up @@ -385,6 +389,7 @@ def request_dict(parent_request_dict, child_request_dict, ts_epoch):
"namespace": "ns",
"command": "speak",
"id": "58542eb571afd47ead90d25e",
"is_event": False,
"parent": parent_request_dict,
"children": [child_request_dict],
"parameters": {"message": "hey!"},
Expand Down
1 change: 1 addition & 0 deletions test/decorators_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ def test_basic(self, command_dict, bg_command):
bg_command.parameters = []
del command_dict["name"]
del command_dict["parameters"]
del command_dict["topics"]

@command(**command_dict)
def foo():
Expand Down

0 comments on commit 95f4f37

Please sign in to comment.