Skip to content

Commit

Permalink
Merge pull request #48 from Sage-Bionetworks-Workflows/bwmac/orca-269…
Browse files Browse the repository at this point in the history
…/tifftag306test_update

[ORCA-269] TiffTag306Test Update
  • Loading branch information
BWMac authored Aug 23, 2023
2 parents 45bbcba + d0ecd4e commit 68f9564
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/dcqc/tests/tiff_tag_306_date_time_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ def generate_process(self) -> Process:
"tifftools",
"dump",
f"'{path.name}'",
"--json",
"--silent",
"|",
"grep", # pipe the output
"-a", # treat input as text
"-q", # suppress output
"'DateTime 306 (0x132) ASCII'", # match the DateTime 306 tag
"jq",
"-e",
"'.[].ifds[].tags[\"306\"]'",
]
process = Process(
container="ghcr.io/sage-bionetworks-workflows/tifftools:latest",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def test_that_the_tifftag306datetimetest_command_is_produced(test_targets):
target = test_targets["tiff"]
test = tests.TiffTag306DateTimeTest(target)
process = test.generate_process()
assert "grep" in process.command
assert "jq" in process.command


def test_that_the_tifftag306datetimetest_correctly_interprets_exit_code_0_and_1(
Expand Down

0 comments on commit 68f9564

Please sign in to comment.