summaryrefslogtreecommitdiffstats
path: root/python/tests/harvest_state.py
diff options
context:
space:
mode:
authorMartin Czygan <martin@archive.org>2020-05-27 23:25:00 +0000
committerMartin Czygan <martin@archive.org>2020-05-27 23:25:00 +0000
commit174cf39a02b85c69ada9bea609be2fc06c172e68 (patch)
tree46fdb09a5cfe629b2581eaf195fd93ec87b399a3 /python/tests/harvest_state.py
parentd7ebedc840d8fe27fe0b952986ec9d9161964123 (diff)
parent670aed3800873869550b477846f48cb2b4193005 (diff)
downloadfatcat-174cf39a02b85c69ada9bea609be2fc06c172e68.tar.gz
fatcat-174cf39a02b85c69ada9bea609be2fc06c172e68.zip
Merge branch 'bnewbold-harvest-state-next-span' into 'master'
rename HarvestState.next() to HarvestState.next_span() See merge request webgroup/fatcat!53
Diffstat (limited to 'python/tests/harvest_state.py')
-rw-r--r--python/tests/harvest_state.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/tests/harvest_state.py b/python/tests/harvest_state.py
index 4273830f..8b7deba6 100644
--- a/python/tests/harvest_state.py
+++ b/python/tests/harvest_state.py
@@ -16,7 +16,7 @@ def test_harvest_state():
for d in list(hs.to_process):
hs.complete(d)
- assert hs.next() is None # pylint: disable=not-callable
+ assert hs.next_span() is None
hs = HarvestState(
start_date=datetime.date(2000,1,1),
@@ -30,7 +30,7 @@ def test_harvest_state():
assert len(hs.to_process) == 5
hs = HarvestState(catchup_days=0)
- assert hs.next() is None # pylint: disable=not-callable
+ assert hs.next_span() is None
hs.enqueue_period(
start_date=datetime.date(2000,1,1),
end_date=datetime.date(2000,1,3),