1212@patch ('homebrew_releaser.app.add_git' )
1313@patch ('homebrew_releaser.app.commit_git' )
1414@patch ('homebrew_releaser.app.push_git' )
15- @patch ('homebrew_releaser.utils.Utils .write_file' )
15+ @patch ('homebrew_releaser.app .write_file' )
1616@patch ('homebrew_releaser.app.generate_formula_data' )
1717@patch ('homebrew_releaser.app.calculate_checksum' , return_value = ('123' , 'mock-repo' ))
1818@patch ('homebrew_releaser.app.App.download_archive' )
19- @patch ('homebrew_releaser.utils.Utils .make_github_get_request' )
19+ @patch ('homebrew_releaser.app .make_github_get_request' )
2020@patch ('homebrew_releaser.app.App.check_required_env_variables' )
2121def test_run_github_action_skip_commit (
2222 mock_check_env_variables ,
@@ -54,11 +54,11 @@ def test_run_github_action_skip_commit(
5454@patch ('homebrew_releaser.app.add_git' )
5555@patch ('homebrew_releaser.app.commit_git' )
5656@patch ('homebrew_releaser.app.push_git' )
57- @patch ('homebrew_releaser.utils.Utils .write_file' )
57+ @patch ('homebrew_releaser.app .write_file' )
5858@patch ('homebrew_releaser.app.generate_formula_data' )
5959@patch ('homebrew_releaser.app.calculate_checksum' , return_value = ('123' , 'mock-repo' ))
6060@patch ('homebrew_releaser.app.App.download_archive' )
61- @patch ('homebrew_releaser.utils.Utils .make_github_get_request' )
61+ @patch ('homebrew_releaser.app .make_github_get_request' )
6262@patch ('homebrew_releaser.app.App.check_required_env_variables' )
6363def test_run_github_action (
6464 mock_check_env_variables ,
@@ -99,11 +99,11 @@ def test_run_github_action(
9999@patch ('homebrew_releaser.app.add_git' )
100100@patch ('homebrew_releaser.app.commit_git' )
101101@patch ('homebrew_releaser.app.push_git' )
102- @patch ('homebrew_releaser.utils.Utils .write_file' )
102+ @patch ('homebrew_releaser.app .write_file' )
103103@patch ('homebrew_releaser.app.generate_formula_data' )
104104@patch ('homebrew_releaser.app.calculate_checksum' , return_value = ('123' , 'mock-repo' ))
105105@patch ('homebrew_releaser.app.App.download_archive' )
106- @patch ('homebrew_releaser.utils.Utils .make_github_get_request' )
106+ @patch ('homebrew_releaser.app .make_github_get_request' )
107107@patch ('homebrew_releaser.app.App.check_required_env_variables' )
108108def test_run_github_action_update_readme (
109109 mock_check_env_variables ,
@@ -145,11 +145,11 @@ def test_run_github_action_update_readme(
145145@patch ('homebrew_releaser.app.add_git' )
146146@patch ('homebrew_releaser.app.commit_git' )
147147@patch ('homebrew_releaser.app.push_git' )
148- @patch ('homebrew_releaser.utils.Utils .write_file' )
148+ @patch ('homebrew_releaser.app .write_file' )
149149@patch ('homebrew_releaser.app.generate_formula_data' )
150150@patch ('homebrew_releaser.app.calculate_checksum' , return_value = ('123' , 'mock-repo' ))
151151@patch ('homebrew_releaser.app.App.download_archive' )
152- @patch ('homebrew_releaser.utils.Utils .make_github_get_request' )
152+ @patch ('homebrew_releaser.app .make_github_get_request' )
153153@patch ('homebrew_releaser.app.App.check_required_env_variables' )
154154@patch ('homebrew_releaser.app.update_python_resources' )
155155@patch ('homebrew_releaser.app.setup_homebrew_tap' )
@@ -198,11 +198,11 @@ def test_run_github_action_update_python_resources(
198198@patch ('homebrew_releaser.app.add_git' )
199199@patch ('homebrew_releaser.app.commit_git' )
200200@patch ('homebrew_releaser.app.push_git' )
201- @patch ('homebrew_releaser.utils.Utils .write_file' )
201+ @patch ('homebrew_releaser.app .write_file' )
202202@patch ('homebrew_releaser.app.generate_formula_data' )
203203@patch ('homebrew_releaser.app.calculate_checksum' , return_value = ('123' , 'mock-repo' ))
204204@patch ('homebrew_releaser.app.App.download_archive' )
205- @patch ('homebrew_releaser.utils.Utils .make_github_get_request' )
205+ @patch ('homebrew_releaser.app .make_github_get_request' )
206206@patch ('homebrew_releaser.app.App.check_required_env_variables' )
207207def test_run_github_action_target_matrix (
208208 mock_check_env_variables ,
@@ -265,8 +265,8 @@ def test_check_required_env_variables_missing_env_variable(mock_system_exit):
265265 )
266266
267267
268- @patch ('homebrew_releaser.utils.Utils .write_file' )
269- @patch ('homebrew_releaser.utils.Utils .make_github_get_request' )
268+ @patch ('homebrew_releaser.app .write_file' )
269+ @patch ('homebrew_releaser.app .make_github_get_request' )
270270def test_download_public_archive (mock_make_github_get_request , mock_write_file ):
271271 url = 'https://github.com/repos/Justintime50/homebrew-releaser/archive/refs/tags/v0.1.0.tar.gz'
272272 App .download_archive (url , True )
@@ -275,8 +275,8 @@ def test_download_public_archive(mock_make_github_get_request, mock_write_file):
275275 mock_write_file .assert_called_once () # TODO: Assert `called_with` here instead
276276
277277
278- @patch ('homebrew_releaser.utils.Utils .write_file' )
279- @patch ('homebrew_releaser.utils.Utils .make_github_get_request' )
278+ @patch ('homebrew_releaser.app .write_file' )
279+ @patch ('homebrew_releaser.app .make_github_get_request' )
280280def test_download_private_archive (mock_make_github_get_request , mock_write_file ):
281281 url = 'https://api.github.com/repos/Justintime50/homebrew-releaser/tarball/v0.1.0'
282282 App .download_archive (url , False )
0 commit comments