Mock is a needed dependency of terraform-compliance used in terraform_compliance.common.error_handling
With last release of terraform-compliance (1.3.37) our ci jobs are failing due to the import issue:
! ERROR: Unable to import module 'steps' from '/usr/local/lib/python3.10/dist-packages/terraform_compliance/steps/steps.py': No module named 'mock'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/radish/loader.py", line 43, in load_module
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/local/lib/python3.10/dist-packages/terraform_compliance/steps/steps.py", line 14, in <module>
from terraform_compliance.common.error_handling import Error
File "/usr/local/lib/python3.10/dist-packages/terraform_compliance/common/error_handling.py", line 7, in <module>
from mock import MagicMock
ModuleNotFoundError: No module named 'mock'
Mock is a needed dependency of terraform-compliance used in terraform_compliance.common.error_handling
With last release of terraform-compliance (1.3.37) our ci jobs are failing due to the import issue: