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

fix: created mock to override file open #580

Conversation

ian-bowden-slalom
Copy link
Contributor

This PR mocks the builtins.open for the test_that_update_with_new_pattern_succeeds test so that the test doesn't open and modify the actual secureli.yaml file in the repository

Tested that all tests still pass and that the secureli file is no longer modified after running tests

Clean Code Checklist

  • Meets acceptance criteria for issue
  • New logic is covered with automated tests
  • Appropriate exception handling added
  • Thoughtful logging included
  • Documentation is updated
  • Follow-up work is documented in TODOs
  • TODOs have a ticket associated with them
  • No commented-out code included

@ian-bowden-slalom ian-bowden-slalom linked an issue Jun 27, 2024 that may be closed by this pull request
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR title failed to match (chore|style|test|feat|fix|docs|ci): .+

@ian-bowden-slalom ian-bowden-slalom changed the title created mock to override file open bug: created mock to override file open Jun 27, 2024
@ian-bowden-slalom ian-bowden-slalom changed the title bug: created mock to override file open fix: created mock to override file open Jun 27, 2024
@github-actions github-actions bot dismissed their stale review June 27, 2024 20:31

All good!

@ian-bowden-slalom ian-bowden-slalom merged commit 525a738 into main Jul 8, 2024
6 of 8 checks passed
@ian-bowden-slalom ian-bowden-slalom deleted the feature/secureli-577-stop-unit-tests-from-modifying-config-files branch July 8, 2024 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stop unit tests from modifying config files
3 participants