diff tests/test_commands_populate.py @ 41:1db1890edcf5

Change populate command's 'until' argument to be exclusive and support time The argument can now specify a time within the day, but this forces the argument to now be exclusive. So if only a date is provided (no time), you need to enter the next day, i.e. the first day to *not* be included. This makes the argument effectively exclusive.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 20 Aug 2023 11:14:31 -0700
parents a921cc2306bc
children 91dea4fe31ec
line wrap: on
line diff
--- a/tests/test_commands_populate.py	Sun May 21 09:42:11 2023 -0700
+++ b/tests/test_commands_populate.py	Sun Aug 20 11:14:31 2023 -0700
@@ -44,7 +44,7 @@
     feed = cli.createTempFeed(feed2)
     cli.appendSiloConfig('test', 'print', items='name')
     cli.setFeedConfig('feed', feed)
-    ctx, _ = cli.run('populate', '-s', 'test', '--until', '2018-01-08')
+    ctx, _ = cli.run('populate', '-s', 'test', '--until', '2018-01-08 9AM')
     assert ctx.cache.wasPosted('test', 'https://example.org/first-article')
     assert ctx.cache.wasPosted('test', 'https://example.org/second-article')
     assert not ctx.cache.wasPosted('test', 'https://example.org/third-article')