-
Notifications
You must be signed in to change notification settings - Fork 11
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
bump zgw-consumers to 0.35.1, commonground-api-common to 2.0.1, OAF to 0.9.0 #478
Conversation
…commonground-api-common to 2.0.1, OAF to 0.9.0
f643793
to
ad08c38
Compare
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.
The recent changes in the client behavior should be updated in the tests.
requirements/base.in
Outdated
@@ -1,4 +1,5 @@ | |||
open-api-framework | |||
git+https://github.com/maykinmedia/commonground-api-common.git@issue/44-migration-error |
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.
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.
For now I think this can be removed and you can bump it by running bin/compile_dependencies.sh -P commonground-api-common==2.1.0
@@ -47,7 +47,7 @@ def test_kanaal_create_with_name(self, mock_get_client): | |||
Test is request to create kanaal is send with specified kanaal name | |||
""" | |||
client = mock_get_client.return_value | |||
client.list.return_value = [] | |||
client.get.return_value = [] |
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.
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've replaced patch
with requests_mock.Mocker
for tests, now it should be correct
@@ -72,27 +72,27 @@ def test_kanaal_create_without_name(self, mock_get_client): | |||
Test is request to create kanaal is send with default kanaal name | |||
""" | |||
client = mock_get_client.return_value | |||
client.list.return_value = [] | |||
client.get.return_value = [] |
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.
See comment above
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.
changed
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.
just the comment about the dependency, looks good otherwise
""" | ||
Test is request to create kanaal is send with default kanaal name | ||
""" | ||
client = mock_get_client.return_value | ||
client.list.return_value = [] | ||
m.get(f"{NOTIFICATIONS_API_ROOT}kanaal", json=[]) |
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.
Nice 👍 , not having to know the exact patch location anymore this way.
bump zgw-consumers to 0.35.1, commonground-api-common to 2.0.1, OAF to 0.9.0
fixes maykinmedia/open-api-framework#66
depends on maykinmedia/commonground-api-common#45