From fb5cb31ba10bea3d1a6acbcb94c19c914b1f0e82 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 22 Nov 2020 19:13:41 +0000 Subject: [PATCH] Improve date parsing tests --- tests.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests.py b/tests.py index 7b4a85fd..126b3a72 100644 --- a/tests.py +++ b/tests.py @@ -2390,18 +2390,16 @@ def testParseFeedDate(): print('testParseFeedDate') pubDate = "2020-08-27T16:12:34+00:00" publishedDate = parseFeedDate(pubDate) - assert publishedDate + assert publishedDate == "2020-08-27 16:12:34+00:00" pubDate = "Sun, 22 Nov 2020 19:51:33 +0100" publishedDate = parseFeedDate(pubDate) - print(str(publishedDate)) - assert publishedDate + assert publishedDate == "2020-11-22 19:51:33+00:00" def runAllTests(): print('Running tests...') testParseFeedDate() - return testFirstParagraphFromString() testGetNewswireTags() testHashtagRuleTree()