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

Add the RabbitMQ consumer #24

Merged
merged 5 commits into from
Dec 17, 2024
Merged

Conversation

falvaradorodriguez
Copy link
Contributor

@coveralls
Copy link

coveralls commented Dec 12, 2024

Pull Request Test Coverage Report for Build 12353635207

Details

  • 74 of 90 (82.22%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-3.6%) to 87.556%

Changes Missing Coverage Covered Lines Changed/Added Lines %
app/datasources/queue/queue_provider.py 46 47 97.87%
app/main.py 8 23 34.78%
Totals Coverage Status
Change from base Build 12296070621: -3.6%
Covered Lines: 197
Relevant Lines: 225

💛 - Coveralls

@falvaradorodriguez falvaradorodriguez marked this pull request as ready for review December 12, 2024 15:21
@falvaradorodriguez falvaradorodriguez requested a review from a team as a code owner December 12, 2024 15:21
Copy link
Member

@Uxio0 Uxio0 left a comment

Choose a reason for hiding this comment

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

Good job


class EventsService:

@classmethod
Copy link
Member

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

Copy link
Contributor Author

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

Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 Moved here

valid_event = {"chainId": "123", "type": "transaction"}
self.assertTrue(EventsService.is_event_valid(valid_event))

def test_is_event_invalid(self):
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense. Updated here

@falvaradorodriguez falvaradorodriguez merged commit 4cf2cfc into main Dec 17, 2024
5 checks passed
@falvaradorodriguez falvaradorodriguez deleted the add-the-rabbitmq-consumer branch December 17, 2024 10:29
@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the RabbitMQ consumer
4 participants