Skip to content

Commit 3a8512d

Browse files
committed
removed expected_dict and hardcoded tmp dir and whitespace
1 parent 0271f13 commit 3a8512d

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

flowcraft/templates/trimmomatic_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
except ImportError:
4242
from flowcraft.templates.flowcraft_utils.flowcraft_base import get_logger, \
4343
MainWrapper
44-
44+
4545
logger = get_logger(__file__)
4646

4747

flowcraft/tests/template_tests/test_pATLAS_consensus_json.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@
33
import pytest
44
import flowcraft.templates.pATLAS_consensus_json as pATLAS_consensus_json
55

6-
# the expected result from loading the dictionary in the generated file
7-
expected_dict = {"ACC1":
8-
{"/tmp/pytest-of-tiago/pytest-1/test_generated_dict0/"
9-
"mash_file.txt": ["0.9", "1"],
10-
"/tmp/pytest-of-tiago/pytest-1/test_generated_dict0/"
11-
"test_depth_file.txt": 0.9}
12-
}
13-
146

157
@pytest.fixture
168
def fetch_file(tmpdir, request):
@@ -60,7 +52,7 @@ def test_generated_dict_contents1(fetch_file):
6052
Checks if accession in both expected and result dict is the same
6153
"""
6254
result_dict = fetch_file
63-
assert list(result_dict.keys())[0] == list(expected_dict.keys())[0]
55+
assert list(result_dict.keys())[0] == "ACC1"
6456

6557

6658
def test_generated_dict_contents2(fetch_file):

0 commit comments

Comments
 (0)