-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add the RabbitMQ consumer #24
Conversation
falvaradorodriguez
commented
Dec 12, 2024
- Closes Add the RabbitMQ consumer #14
9747895
to
a3c935b
Compare
Pull Request Test Coverage Report for Build 12353635207Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job
app/services/events.py
Outdated
|
||
class EventsService: | ||
|
||
@classmethod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't use classmethod
and staticmethod
for the services, they should be instantiated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated here
Co-authored-by: Moisés <[email protected]>
""" | ||
|
||
pass | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move the exceptions to exceptions.py
inside of the queue package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Moved here
app/tests/services/test_events.py
Outdated
valid_event = {"chainId": "123", "type": "transaction"} | ||
self.assertTrue(EventsService.is_event_valid(valid_event)) | ||
|
||
def test_is_event_invalid(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this test could be a continuation from the previous one. I mean, reading the test function I was thinking wrongly that there was a is_event_invalid
funtion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. Updated here