From 9984151182beea0158fdd489eebca697694669f2 Mon Sep 17 00:00:00 2001 From: devketanpro Date: Wed, 27 Dec 2023 16:56:06 +0530 Subject: [PATCH] update test for copyright text --- server/ntb/tests/publish/ntb_ninjs_test.py | 6 ++++-- server/ntb/tests/publish/ntb_nitf_test.py | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/server/ntb/tests/publish/ntb_ninjs_test.py b/server/ntb/tests/publish/ntb_ninjs_test.py index 3d874bc3d..b527604a5 100644 --- a/server/ntb/tests/publish/ntb_ninjs_test.py +++ b/server/ntb/tests/publish/ntb_ninjs_test.py @@ -20,6 +20,8 @@

intermediate line

this element should have a txt class

testNTBMEDIA TO REMOVE

+ +

(©MyCompany2023)

""".strip() with open( @@ -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", } diff --git a/server/ntb/tests/publish/ntb_nitf_test.py b/server/ntb/tests/publish/ntb_nitf_test.py index 07eea19eb..5e14ae7ad 100644 --- a/server/ntb/tests/publish/ntb_nitf_test.py +++ b/server/ntb/tests/publish/ntb_nitf_test.py @@ -51,6 +51,7 @@
SCRIPT TO FOLLOW
+

(©MyCompany2023)

""" ) ARTICLE = { @@ -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):