-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Eliminate factory mocks for catalogItemProduct #5892
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
Eliminate factory mocks for catalogItemProduct #5892
Conversation
Signed-off-by: trojanh <[email protected]>
Signed-off-by: trojanh <[email protected]>
0aeedaf to
35e4f8c
Compare
|
@trojanh one of your commits is not signed off, please follow instructions here: https://github.com/reactioncommerce/reaction/pull/5892/checks?check_run_id=343813454 |
77c0ce8 to
21241a9
Compare
bb2c13e to
df5e72a
Compare
Signed-off-by: trojanh <[email protected]>
Signed-off-by: trojanh <[email protected]>
Signed-off-by: trojanh <[email protected]>
df5e72a to
c97d424
Compare
|
I have fixed that commit @willopez , thanks for helping me with this. |
c97d424 to
22ddea9
Compare
…reaction into eliminate-factory-mocks Signed-off-by: trojanh <[email protected]>
22ddea9 to
c934431
Compare
Signed-off-by: trojanh <[email protected]>
Signed-off-by: trojanh <[email protected]>
Signed-off-by: trojanh <[email protected]>
|
@willopez I have updated the test cases to use Factory mocks but one test is failing as offset doesn't seem to be working as expected i.e no matter what offset value I use it returns the same number of items, so next and previous pages are not present as expected earlier. You can check the test case here Let me know if this should be behaving like this or do I need to update my code somewhere. |
|
@trojanh Let's revert the updates you made to the |
… into eliminate-factory-mocks
|
@willopez are you suggesting I keep using the mock folder for that particular test case, while we update the query to fix the underlying issue? If you can confirm there's an issue with the If this PR needs to be shipped without the fix, maybe I can comment or skip that particular test case with an explanation and we do it in another PR. Let me know your thoughts because the original intention of this PR was to eliminate the mocks folder. |
|
@trojanh Let's break the |
Signed-off-by: trojanh <[email protected]>
|
@willopez done, will create another PR for |
willopez
left a comment
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.
LGTM, thanks @trojanh
Resolves #4284
Impact: minor
Type: test|chore
Issue
Use Factory mocks for Catalog integration and removes
tests/mocksTesting