From 06e3b2346b0c6c0315cc9ae0fa86b127752ea2eb Mon Sep 17 00:00:00 2001 From: tcezard Date: Fri, 23 Aug 2024 12:32:22 +0100 Subject: [PATCH] Fix test --- tests/test_orchestrator.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/test_orchestrator.py b/tests/test_orchestrator.py index 5433ffe..b11a856 100644 --- a/tests/test_orchestrator.py +++ b/tests/test_orchestrator.py @@ -36,10 +36,9 @@ def setUp(self) -> None: shutil.copy(os.path.join(self.resource_dir, 'EVA_Submission_test.xlsx'), self.metadata_xlsx) for file_name in ['example1.vcf.gz', 'example2.vcf', 'example3.vcf', 'GCA_000001405.27_fasta.fa']: touch(os.path.join(self.test_sub_dir, file_name)) - self.curr_wd = os.curdir + self.curr_wd = os.getcwd() os.chdir(self.test_sub_dir) - def tearDown(self) -> None: os.chdir(self.curr_wd) if os.path.exists(self.test_sub_dir): @@ -159,7 +158,6 @@ def test_orchestrate_with_vcf_files(self): ) m_docker_validator().validate_and_report.assert_called_once_with() - def test_orchestrate_with_metadata_json_without_asm_report(self): with patch('eva_sub_cli.orchestrator.WritableConfig') as m_config, \ patch('eva_sub_cli.orchestrator.DockerValidator') as m_docker_validator: @@ -198,7 +196,6 @@ def test_orchestrate_with_metadata_json_with_asm_report(self): ) m_docker_validator().validate_and_report.assert_called_once_with() - def test_orchestrate_vcf_files_takes_precedence_over_metadata(self): shutil.copy(os.path.join(self.resource_dir, 'EVA_Submission_test_with_asm_report.json'), self.metadata_json)