Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests for remote client mq #32

Merged
merged 11 commits into from
Jun 23, 2024
Merged

Conversation

nerdai
Copy link
Contributor

@nerdai nerdai commented Jun 23, 2024

No description provided.

@nerdai nerdai marked this pull request as ready for review June 23, 2024 19:33
@nerdai nerdai changed the title [WIP] Unit tests for remote client mq Unit tests for remote client mq Jun 23, 2024

logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
logging.basicConfig(level=logging.DEBUG)


class RemoteClientMessageQueue(BaseMessageQueue):
base_url: str
base_url: PydanticValidatedUrl
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@logan-markewich: while still a str type, this has to be a valid http or https url now

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a lot of places where I hardcoded http://.... when creating URLs -- TODO: probably need a better pattern for that to account for https

@nerdai nerdai merged commit 94ac16e into main Jun 23, 2024
4 of 5 checks passed
@nerdai nerdai deleted the nerdai/unit-test-remote-client-mq branch June 23, 2024 20:12
nerdai added a commit that referenced this pull request Jul 21, 2024
* wip

* add register_consumer unit test

* add unit test for deregister consumer

* dry

* change get_consumers in simple to path param

* unit test for publish; move up publish_time stats for QueueMessage

* update test

* mv and rename remote client to message_queues.simple

* cr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants