This is an automated email from the ASF dual-hosted git repository. dill0wn pushed a commit to branch dw/8426 in repository https://gitbox.apache.org/repos/asf/allura.git
commit abe7dc109fbff20830695b13d537b35b4bdee00a Author: Dillon Walls <[email protected]> AuthorDate: Thu Apr 14 16:14:13 2022 +0000 fixup! SF-6801 Upgrade mock 3.0.5 -> 4.0.3, and its deps: six --- ForgeImporters/forgeimporters/github/tests/test_code.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ForgeImporters/forgeimporters/github/tests/test_code.py b/ForgeImporters/forgeimporters/github/tests/test_code.py index 0530cd6c0..d86d16031 100644 --- a/ForgeImporters/forgeimporters/github/tests/test_code.py +++ b/ForgeImporters/forgeimporters/github/tests/test_code.py @@ -35,6 +35,9 @@ with_git = with_tool(test_project_with_repo, 'git', 'src', 'git') class TestGitHubRepoImporter(TestCase): + def setUp(self): + setup_unit_test() + def _make_project(self, gh_proj_name=None): project = Mock() project.get_tool_data.side_effect = lambda *args: gh_proj_name @@ -44,7 +47,6 @@ class TestGitHubRepoImporter(TestCase): @patch('forgeimporters.github.code.g') @patch('forgeimporters.github.code.GitHubProjectExtractor') def test_import_tool_happy_path(self, ghpe, g, M): - setup_unit_test() ghpe.return_value.get_repo_url.return_value = 'http://remote/clone/url/' p = self._make_project(gh_proj_name='myproject') u = Mock(name='c.user')
