-
Notifications
You must be signed in to change notification settings - Fork 717
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
refactor: repository for about us screen. #2472
Comments
I should be working on it . |
hey @NiranjanNlc actually the entire unit test classes are obsolete and if you run them you would see all of them failing. This is because we have updated our viewmodels. I have already opened #2305 that covers all of the updated viewmodels and repositories. Also I had planned to write the remaining test cases once #2425 gets merged. |
Noted. |
I think the use of context in about us viewmodel is debatable as |
Quoting the mentor in the link you mentioned
I think we need to create the repository , so that we can use context over there to get aboutus item and which also ensure viewmodal do not have any android framework dependencies . What your say @PratyushSingh07 |
Then Why not use the context from the fragment |
Using context in the fragment only to retrieve whole lot of aboutusItems make no use of viewmodal |
hey @PratyushSingh07 , |
Rename and then you can work on it. |
Change the title to refactor: repository for about us screen. Also what do you mean by adding tests? I did say that you may have to change all of the test files, right? Are you sure that writing tests for about us repository and it's viewmodels won't force you to change other test files as well (reason that we discussed above) ? |
done @PratyushSingh07 |
The PR linked to this issue was closed hence I will be closing this issue |
Summary:
Test class for AboutUsView modal test is not present .
Steps to reproduce:
Expected behaviour:
AboutUSViewModal should be tested .
Observed behaviour:
Like any other viewmodal test , the viewmodal of AboutUs should also be present . AboutUs ViewModal is not decoupled enough such that it can be tested .
Device and Android version:
Andriod Studio HedgeHog
Screenshots:
The text was updated successfully, but these errors were encountered: