fix: mocking errors for /product-projections/search #146
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi! Don't know if this project accepts PRs, but in case it does:
Description
On tests of commercetools-python-sdk SDK calls to Product Projection Search, we see error:
In the first 2 commits, this PR attempts to correct the schema and urls used in
commercetools.testing.product_projections
'sProductProjectionsBackend.search()
to squash this error.In the last 2 commits, this PR proposes minor changes to the coverage GitHub Action job to squash bugs from the breaking changes in tooling dependencies, such as one in actions/upload-artifact@3 to actions/upload-artifact@4 of not being able to upload artifacts with the same name.
Additional Information
See commit messages for detailed explanation of changes.
Full error logs that prompted change are below. (But see commit messages first.)
Output of error resolved by a5b5f27
Note in the full logs below how this mocker matches to to
get_by_id()
instead ofsearch()
:Full logs, starting with where
search()
is called:Output of error resolved by 59c7623
Note in full logs below that now call is to
search()
:but
_ProductProjectionQuerySchema
is used instead of_ProductProjectionSearchSchema
:Full logs:
Testing Information
We tested these changes by verifying that the test errors in edx/commerce-coordinator#135 (see this comment) turned green on our locals when manually loading this branch of the SDK in our code.
We verified format/tests/coverage jobs ran successfully in edx#1.