Commit 31473ada authored by van den Berg's avatar van den Berg
Browse files

Update deprecated pytest workflow code

parent 1155ac47
Pipeline #4707 failed with stages
in 2 minutes and 6 seconds
......@@ -5,14 +5,14 @@ import pytest
import os
@pytest.mark.workflow(name='test-integration-no-cluster')
@pytest.mark.workflow('test-integration-no-cluster')
def test_stats_file_exists(workflow_dir):
stats_file = 'stats.tsv'
full_path = workflow_dir / pathlib.Path(stats_file)
assert os.path.exists(full_path)
@pytest.mark.workflow(name='test-integration-no-cluster')
@pytest.mark.workflow('test-integration-no-cluster')
def test_stats_file_name(workflow_dir):
""" Read in the stats file and do some tests """
stats_file = 'stats.tsv'
......@@ -26,7 +26,7 @@ def test_stats_file_name(workflow_dir):
assert data['sample_name'] == 'micro'
@pytest.mark.workflow(name='test-integration-no-cluster')
@pytest.mark.workflow('test-integration-no-cluster')
def test_stats_file_mapped_reads(workflow_dir):
""" Read in the stats file and do some tests """
stats_file = 'stats.tsv'
......@@ -40,7 +40,7 @@ def test_stats_file_mapped_reads(workflow_dir):
assert data['mapped_reads'] == '15515'
@pytest.mark.workflow(name='test-integration-no-cluster')
@pytest.mark.workflow('test-integration-no-cluster')
def test_stats_file_mapped_bases(workflow_dir):
""" Read in the stats file and do some tests """
stats_file = 'stats.tsv'
......@@ -54,7 +54,7 @@ def test_stats_file_mapped_bases(workflow_dir):
assert data['mapped_bases'] == '2275114'
@pytest.mark.workflow(name='test-integration-no-cluster')
@pytest.mark.workflow('test-integration-no-cluster')
def test_stats_file_usable_reads(workflow_dir):
""" Read in the stats file and do some tests """
stats_file = 'stats.tsv'
......@@ -68,7 +68,7 @@ def test_stats_file_usable_reads(workflow_dir):
assert data['usable_reads'] == '15477'
@pytest.mark.workflow(name='test-integration-no-cluster')
@pytest.mark.workflow('test-integration-no-cluster')
def test_stats_file_usable_bases(workflow_dir):
""" Read in the stats file and do some tests """
stats_file = 'stats.tsv'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment