Skip to content

Commit

Permalink
removed expected_dict and hardcoded tmp dir and whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagofilipe12 committed Nov 7, 2018
1 parent 0271f13 commit 3a8512d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion flowcraft/templates/trimmomatic_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
except ImportError:
from flowcraft.templates.flowcraft_utils.flowcraft_base import get_logger, \
MainWrapper

logger = get_logger(__file__)


Expand Down
10 changes: 1 addition & 9 deletions flowcraft/tests/template_tests/test_pATLAS_consensus_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
import pytest
import flowcraft.templates.pATLAS_consensus_json as pATLAS_consensus_json

# the expected result from loading the dictionary in the generated file
expected_dict = {"ACC1":
{"/tmp/pytest-of-tiago/pytest-1/test_generated_dict0/"
"mash_file.txt": ["0.9", "1"],
"/tmp/pytest-of-tiago/pytest-1/test_generated_dict0/"
"test_depth_file.txt": 0.9}
}


@pytest.fixture
def fetch_file(tmpdir, request):
Expand Down Expand Up @@ -60,7 +52,7 @@ def test_generated_dict_contents1(fetch_file):
Checks if accession in both expected and result dict is the same
"""
result_dict = fetch_file
assert list(result_dict.keys())[0] == list(expected_dict.keys())[0]
assert list(result_dict.keys())[0] == "ACC1"


def test_generated_dict_contents2(fetch_file):
Expand Down

0 comments on commit 3a8512d

Please sign in to comment.