Module: test_utility
File: C:\Users\korde\Home\Github\task-runner-SDLC\tests\test_utility.py
Language: Python
Imports
import unittestfrom unittest.mock import patchfrom unittest.mock import MagicMockimport jsonimport osfrom src.utility import run_commandfrom src.utility import download_filefrom src.utility import load_json_filefrom src.utility import save_json_filefrom src.utility import generate_file
Classes
Class: TestUtility (inherits from: unittest.TestCase)
No description available
Methods
test_download_file_failure(self, mock_urlretrieve)
Decorators: @patch
No description available
Parameters
selfmock_urlretrieve
test_download_file_success(self, mock_urlretrieve)
Decorators: @patch
No description available
Parameters
selfmock_urlretrieve
test_generate_file(self)
No description available
Parameters
self
test_load_json_file_exists(self)
No description available
Parameters
self
test_load_json_file_not_exists(self)
No description available
Parameters
self
test_run_command_failure(self)
No description available
Parameters
self
test_run_command_success(self)
No description available
Parameters
self
test_save_json_file(self)
No description available
Parameters
self