Skip to content

Commit

Permalink
update test for copyright text
Browse files Browse the repository at this point in the history
  • Loading branch information
devketanpro committed Dec 27, 2023
1 parent 94d0cbd commit 9984151
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions server/ntb/tests/publish/ntb_ninjs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<h3>intermediate line</h3>
<p>this element should have a txt class</p>
<p><a>test</a>NTBMEDIA TO REMOVE</p>
<p>(©MyCompany2023)</p>
""".strip()

with open(
Expand Down Expand Up @@ -319,8 +321,8 @@ def test_format_item(self):
],
"bodies": [
{
"charcount": 132,
"wordcount": 25,
"charcount": 148,
"wordcount": 26,
"value": TEST_BODY_EXPECTED,
"contenttype": "text/html",
}
Expand Down
3 changes: 2 additions & 1 deletion server/ntb/tests/publish/ntb_nitf_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
</video>
<figcaption>SCRIPT TO FOLLOW</figcaption>
</figure><!-- EMBED END Video {id: "embedded10005446043"} -->
<p>(©MyCompany2023)</p>
"""
)
ARTICLE = {
Expand Down Expand Up @@ -442,7 +443,7 @@ def test_pubdata(self):
pubdata = self.nitf_xml.find("head/pubdata")
expected = NOW.astimezone(self.tz).strftime("%Y%m%dT%H%M%S")
self.assertEqual(pubdata.get("date.publication"), expected)
self.assertEqual(pubdata.get("item-length"), "121")
self.assertEqual(pubdata.get("item-length"), "137")
self.assertEqual(pubdata.get("unit-of-measure"), "character")

def test_dateline(self):
Expand Down

0 comments on commit 9984151

Please sign in to comment.