Skip to content

Commit

Permalink
Updated power assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp committed Sep 6, 2024
1 parent f6540f7 commit b90950c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 46 deletions.
1 change: 0 additions & 1 deletion modules/nf-core/mmseqs/databases/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ name: mmseqs_databases
channels:
- conda-forge
- bioconda
- defaults
dependencies:
- bioconda::mmseqs2=15.6f452
4 changes: 2 additions & 2 deletions modules/nf-core/mmseqs/databases/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ process MMSEQS_DATABASES {
val database

output:
path "${prefix}/" , emit: database
path "versions.yml" , emit: versions
path "${prefix}/" , emit: database
path "versions.yml" , emit: versions

when:
task.ext.when == null || task.ext.when
Expand Down
12 changes: 8 additions & 4 deletions modules/nf-core/mmseqs/databases/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ nextflow_process {
tag "mmseqs/databases"

test("test-mmseqs-databases") {

when {
process {
"""
Expand All @@ -24,11 +24,15 @@ nextflow_process {
then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
{ assert snapshot(
file(process.out.database[0]).listFiles().collect { it.name }, // unstable
process.out.versions
).match()
}
)
}
}

test("test-mmseqs-databases-stub") {
options '-stub'
when {
Expand All @@ -47,5 +51,5 @@ nextflow_process {
)
}
}

}
56 changes: 17 additions & 39 deletions modules/nf-core/mmseqs/databases/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -1,50 +1,28 @@
{
"test-mmseqs-databases": {
"content": [
{
"0": [
[
"database:md5,1c0ce0899156843604869205a1fdebf7",
"database.dbtype:md5,c8ed20c23ba91f4577f84c940c86c7db",
"database.index:md5,19128cfcc6d0fa5dd7451938e8e7481f",
"database.lookup:md5,03cb3ae6b0580a858ddf5fd5eb1e4cab",
"database.source:md5,acf29bfb5e2a3febe53a3349d778cacd",
"database.version:md5,03643ccd1930642c55e3cfca40a7309f",
"database_h:md5,8931d1d093e2332a134ec5f2b6c12ca4",
"database_h.dbtype:md5,8895d3d8e9322aedbf45249dfb3ddb0a",
"database_h.index:md5,976c04c17837a4ba64ec119588339f14",
"database_mapping:md5,712219037a5f289aa210c0681e4dc82f",
"database_taxonomy:md5,b3d9d456534c691fdd3e158887892bab"
]
],
"1": [
"versions.yml:md5,b038db45e5934b8f0f743449bbac01b4"
],
"database": [
[
"database:md5,1c0ce0899156843604869205a1fdebf7",
"database.dbtype:md5,c8ed20c23ba91f4577f84c940c86c7db",
"database.index:md5,19128cfcc6d0fa5dd7451938e8e7481f",
"database.lookup:md5,03cb3ae6b0580a858ddf5fd5eb1e4cab",
"database.source:md5,acf29bfb5e2a3febe53a3349d778cacd",
"database.version:md5,03643ccd1930642c55e3cfca40a7309f",
"database_h:md5,8931d1d093e2332a134ec5f2b6c12ca4",
"database_h.dbtype:md5,8895d3d8e9322aedbf45249dfb3ddb0a",
"database_h.index:md5,976c04c17837a4ba64ec119588339f14",
"database_mapping:md5,712219037a5f289aa210c0681e4dc82f",
"database_taxonomy:md5,b3d9d456534c691fdd3e158887892bab"
]
],
"versions": [
"versions.yml:md5,b038db45e5934b8f0f743449bbac01b4"
]
}
[
"database",
"database.lookup",
"database.dbtype",
"database.source",
"database_taxonomy",
"database_h",
"database.version",
"database_h.index",
"database_h.dbtype",
"database.index",
"database_mapping"
],
[
"versions.yml:md5,b038db45e5934b8f0f743449bbac01b4"
]
],
"meta": {
"nf-test": "0.9.0",
"nextflow": "24.04.4"
},
"timestamp": "2024-09-05T17:00:12.286094"
"timestamp": "2024-09-06T15:16:09.610461"
},
"test-mmseqs-databases-stub": {
"content": [
Expand Down

0 comments on commit b90950c

Please sign in to comment.