Skip to content

Commit

Permalink
Fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JureZmrzlikar committed Feb 22, 2022
1 parent e28dac1 commit 0137a12
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
16 changes: 8 additions & 8 deletions docs/files/tutorial-create.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,18 @@

# Run a workflow
res.run(
slug='workflow-bbduk-star-featurecounts-qc-single',
slug='workflow-bbduk-star-featurecounts-qc',
input={
'preprocessing': {'reads': reads},
'alignment': {'genome': res.data.get('resdk-example-genome-index')},
'quantification': {'annotation': res.data.get('resdk-example-annotation')},
'qc': {
'globin_reference': res.data.get('resdk-example-globin-index'),
'rrna_reference': res.data.get('resdk-example-rrna-index'),
},
'reads': reads,
'genome': res.data.get('resdk-example-genome-index'),
'annotation': res.data.get('resdk-example-annotation'),
'rrna_reference': res.data.get('resdk-example-rrna-index'),
'globin_reference': res.data.get('resdk-example-globin-index'),
}
)



# Update the data object to get the most recent info
alignment.update()

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial-create.rst
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ normal process and have a process slug, inputs... For example, we
can run workflow "General RNA-seq pipeline" on our reads:

.. literalinclude:: files/tutorial-create.py
:lines: 90-102
:lines: 90-100

Solving problems
================
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/docs/e2e_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def setUp(self):
# Set permissions for running processes:
self.allow_run_process(self.res, "upload-fastq-single")
self.allow_run_process(self.res, "alignment-star")
self.allow_run_process(self.res, "workflow-bbduk-star-featurecounts-qc-single")
self.allow_run_process(self.res, "workflow-bbduk-star-featurecounts-qc")
# Set permissions for using descriptor_schemas:
self.allow_use_descriptor_schema(self.res, "reads")
self.allow_use_descriptor_schema(self.res, "sample")
Expand Down
6 changes: 2 additions & 4 deletions tests/functional/resolwe/e2e_resolwe.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,5 @@ def test_admin_user(self):
def test_ordering(self):
usage_info = self.res.data_usage(ordering=["username"])
self.assertEqual(len(usage_info), 2)
first = usage_info[0]
second = usage_info[1]
self.assertEqual(first["username"], ADMIN_USERNAME)
self.assertEqual(second["username"], USER_USERNAME)
self.assertEqual(usage_info[0]["username"], ADMIN_USERNAME)
self.assertEqual(usage_info[1]["username"], USER_USERNAME)

0 comments on commit 0137a12

Please sign in to comment.