Skip to content

Commit 97fc994

Browse files
committed
clean up test
1 parent eb83c6b commit 97fc994

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

services/src/test/scala/cromwell/services/womtool/DescriberSpec.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ import scala.util.Try
2121

2222
class DescriberSpec extends AnyFlatSpec with CromwellTimeoutSpec with Matchers {
2323

24-
private val validationTestCases = DefaultPathBuilder.get("services/src/test/resources/describe/normal")
25-
private val languageVersions = Option(validationTestCases.list).toList.flatten
24+
private val normalValidationTestCases = DefaultPathBuilder.get("services/src/test/resources/describe/normal")
25+
private val zippedValidationTestCases = DefaultPathBuilder.get("services/src/test/resources/describe/zipped")
26+
27+
private val languageVersions = Option(normalValidationTestCases.list).toList.flatten
2628

2729
CromwellLanguages.initLanguages(LanguageConfiguration.AllLanguageEntries)
2830

@@ -67,16 +69,14 @@ class DescriberSpec extends AnyFlatSpec with CromwellTimeoutSpec with Matchers {
6769
}
6870

6971
it should "describe a workflow when imports are zipped" in {
70-
val testCaseDir = DefaultPathBuilder.get("services/src/test/resources/describe/zipped")
71-
7272
// Read the main workflow
73-
val workflowSource = testCaseDir.resolve("workflow.wdl").contentAsString
73+
val workflowSource = zippedValidationTestCases.resolve("workflow.wdl").contentAsString
7474

7575
// Read the imported file
76-
val importedWdl = testCaseDir.resolve("imports.zip").byteArray
76+
val importedWdl = zippedValidationTestCases.resolve("imports.zip").byteArray
7777

7878
// Read expected description
79-
val expectedDescription = parse(testCaseDir.resolve("description.json").contentAsString).toOption.get
79+
val expectedDescription = parse(zippedValidationTestCases.resolve("description.json").contentAsString).toOption.get
8080

8181
// Build the source files collection with dependencies zip
8282
val wsfc = WorkflowSourceFilesWithDependenciesZip(

0 commit comments

Comments
 (0)