Skip to content

Commit

Permalink
add test against freetext component in study file
Browse files Browse the repository at this point in the history
  • Loading branch information
HLWeil committed Jan 23, 2025
1 parent 38c1629 commit dbf8ff4
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/CLITests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type CLIContext() =
?fmt: bool
) =
fun f ->

let tool = $"arc-to-invenio"
let args =
[
Expand Down Expand Up @@ -56,5 +57,11 @@ let ``CLI Tests`` =
yield! testFixture (CLIContext.create(p = "fixtures/test-arc", fmt=true)) [
"arc-to-invenio -p fixtures/test-arc -pd 2023-04-25 -fmt", (fun json -> fun () -> Expect.equal json ReferenceObjects.IO.investigation_1_formatted "json created by cli copmmand was incorrect")
]
yield! testFixture (CLIContext.create(p = "fixtures/test-arc-freetextComponent")) [
"arc-to-invenio -p fixtures/test-arc-freetextComponent -pd 2023-04-25", (fun json -> fun () -> Expect.equal json ReferenceObjects.IO.investigation_1_unformatted "json created by cli copmmand was incorrect")
]
yield! testFixture (CLIContext.create(p = "fixtures/test-arc-freetextComponent", fmt=true)) [
"arc-to-invenio -p fixtures/test-arc-freetextComponent -pd 2023-04-25 -fmt", (fun json -> fun () -> Expect.equal json ReferenceObjects.IO.investigation_1_formatted "json created by cli copmmand was incorrect")
]
]
]
Empty file.
Empty file.
Binary file not shown.
Empty file.
Empty file.
Empty file.
Binary file not shown.
Empty file.
Empty file.
Empty file.

0 comments on commit dbf8ff4

Please sign in to comment.