From 7924f2ae7fe53445377d286250af41a0a71dbda8 Mon Sep 17 00:00:00 2001 From: "Dr. Ernie Prabhakar" <19791+drernie@users.noreply.github.com> Date: Tue, 3 Dec 2024 20:23:21 -0800 Subject: [PATCH] test displayName, compileReadme --- .../src/test/nextflow/quilt/QuiltProductTest.groovy | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/nf-quilt/src/test/nextflow/quilt/QuiltProductTest.groovy b/plugins/nf-quilt/src/test/nextflow/quilt/QuiltProductTest.groovy index b48065a4..f4e435e2 100644 --- a/plugins/nf-quilt/src/test/nextflow/quilt/QuiltProductTest.groovy +++ b/plugins/nf-quilt/src/test/nextflow/quilt/QuiltProductTest.groovy @@ -95,6 +95,7 @@ class QuiltProductTest extends QuiltSpecification { product.metadata != null product.metadata.key == 'val' product.metadata.key2 == 'val2' + product.displayName().replace('%2f', '/') == testURI } void 'should generate solid string for timestamp from now'() { @@ -116,6 +117,7 @@ class QuiltProductTest extends QuiltSpecification { !product.shouldSkip(QuiltProduct.KEY_SUMMARIZE) !product.shouldSkip(QuiltProduct.KEY_README) !product.shouldSkip(QuiltProduct.KEY_META) + product.compileReadme("msg") } void 'shouldSkip if key is false'() { @@ -129,11 +131,12 @@ class QuiltProductTest extends QuiltSpecification { expect: product.shouldSkip(key) + product.compileReadme("test") == null where: key << [ - // QuiltProduct.KEY_META, - // QuiltProduct.KEY_README, + QuiltProduct.KEY_META, + QuiltProduct.KEY_README, QuiltProduct.KEY_SUMMARIZE ] } @@ -145,7 +148,7 @@ class QuiltProductTest extends QuiltSpecification { then: product.metadata - //product.metadata['cf_key'] == 'cf_val' + product.metadata['cf_key'] == 'cf_val' product.metadata['key'] == 'val' product.metadata['key2'] == 'val2'