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

feat: add blueprint methods #90

Merged
merged 1 commit into from
Oct 14, 2023
Merged

Conversation

Yash-sudo-web
Copy link
Contributor

Addresses Issue #79

@Cliftonz Cliftonz requested a review from ryshu October 6, 2023 20:44
@Yash-sudo-web
Copy link
Contributor Author

hey @ryshu, how to proceed with this now, can you brief me a bit?

@Yash-sudo-web
Copy link
Contributor Author

I updated the code according to the linter, can you re-run the tests and let me know if there are still any issues?

@ryshu
Copy link
Collaborator

ryshu commented Oct 7, 2023

Hi, you can run all pipelines tests on your own computer if you want.

Still missing all tests, pipelines will fail. 100÷ coverage is required to pass pipelines.

@Yash-sudo-web
Copy link
Contributor Author

Hello, I have added the unittests for the blueprint methods, test coverage should be 100+ now.

@Yash-sudo-web
Copy link
Contributor Author

hey @ryshu, can you review the PR? I am facing some issues with implementation of a unit test, one of them works fine but the other one is not passing.

Copy link
Collaborator

@ryshu ryshu left a comment

Choose a reason for hiding this comment

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

When I look at the history, I see that the commits you make don't follow the naming convention.

I also observe that the merge request is targeted towards the "main" branch while we use the "alpha" branch for current developments.

Since all of these points are covered in the contribution guidelines, I would like you to take a look at them before asking for my help. https://github.com/novuhq/novu-python/blob/main/CONTRIBUTING.rst

For the unit test part, the unit test fails and shows the error you are making. Since it is enough to read the result to understand the error, I don't see where I can be useful.

image

Result doesn't match your expectation.

FYI, for debug purpose only (should never be comited), you can use self.maxDiff = None before the test to see the untruncated message. https://docs.python.org/3/library/unittest.html#unittest.TestCase.maxDiff

novu/dto/__init__.py Outdated Show resolved Hide resolved
novu/api/__init__.py Outdated Show resolved Hide resolved
)
cls.expected_grouped_blueprint_dto = GroupedBlueprintDto(
category="example_category",
general=[{}],
Copy link
Collaborator

Choose a reason for hiding this comment

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

API return and expectation aren't the same here. You expect and empty general when the API return blueprint DTO

novu/dto/blueprint.py Outdated Show resolved Hide resolved
novu/dto/blueprint.py Outdated Show resolved Hide resolved
@ryshu ryshu changed the base branch from main to alpha October 9, 2023 06:49
@ryshu ryshu changed the title Feature : Added blueprint methods feat: add blueprint methods Oct 9, 2023
@ryshu
Copy link
Collaborator

ryshu commented Oct 14, 2023

@Yash-sudo-web Do you want me to finish your MR? The unit tests don't seem to be too complex for me to solve and we can plan a new alpha quickly.

@Yash-sudo-web
Copy link
Contributor Author

hey, @ryshu yes you can finish the MR, thanks.

@ryshu ryshu requested a review from Cliftonz October 14, 2023 15:05
@ryshu ryshu self-assigned this Oct 14, 2023
@ryshu
Copy link
Collaborator

ryshu commented Oct 14, 2023

@Cliftonz Hi, also ready for rebase and merge

@unicodeveloper unicodeveloper merged commit 160314f into novuhq:alpha Oct 14, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants