slalombuild / secureli

seCureLI is a tool that enables you to experience the delight of building products by helping you get ideas from your head into working software as frictionlessly as possible, in a reliable, secure, scalable, and observable way.
Apache License 2.0
29 stars 3 forks source link

Stop unit tests from modifying config files #577

Open blonienc opened 2 weeks ago

blonienc commented 2 weeks ago

Description: There's currently a bug where running unit tests (poetry run poe test) will result in .secureli.yaml being modified to include a "scan_patterns" property which is used for unit testing the custom regex scanner feature.

The unit tests need to be updated so that .secureli.yaml isn't updated at all during unit testing. We should instead be mocking the .secureli.yaml file in the tests.

AC: running unit tests locally does not result in any config files being modified