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

Remove unnecessary mocks #379

Open
2 tasks
drewbo opened this issue Aug 26, 2022 · 1 comment
Open
2 tasks

Remove unnecessary mocks #379

drewbo opened this issue Aug 26, 2022 · 1 comment
Labels
icebox Cold storage for issues squad-pages Pages squad label

Comments

@drewbo
Copy link
Contributor

drewbo commented Aug 26, 2022

Some portion of the code base is only tested via mocks where it could be tested more thoroughly. A good example of an area for improvement is publish testing. Both the s3 connection and the publisher itself are mocked where only one is needed (for instance, you can replace this code block with yield None and the test will still pass). Since we are using moto to mock AWS calls, we should unmock the calls to AWS and see if the mocked services have the files/properties we expect.

Acceptance Criteria

  • Determine whether this is a priority
  • Decide on which functions and tests should be improved
@drewbo drewbo changed the title Reduce usage of test mocking Reduce use of test mocking Aug 26, 2022
@drewbo
Copy link
Contributor Author

drewbo commented Aug 26, 2022

Update: there is a separate test for s3publisher so maybe a better description would be to remove the s3 mocks where they aren't used

@drewbo drewbo changed the title Reduce use of test mocking Remove unnecessary mocks Aug 26, 2022
@apburnes apburnes added the squad-pages Pages squad label label Jun 29, 2023
@apburnes apburnes added the icebox Cold storage for issues label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
icebox Cold storage for issues squad-pages Pages squad label
Projects
None yet
Development

No branches or pull requests

2 participants