Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tcezard committed Aug 23, 2024
1 parent 1b78f2f commit 06e3b23
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test_orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 06e3b23

Please sign in to comment.