aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/transforms
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-04 19:21:10 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-04 19:21:10 -0700
commitfc443013d4a004d69c53be3286e33dd30921879e (patch)
tree7ae87d9be5ec06d0612203f153302c496c3743d4 /python/fatcat_tools/transforms
parentab649adac04086817c69113fa075f1cb9bdc6d0f (diff)
downloadfatcat-fc443013d4a004d69c53be3286e33dd30921879e.tar.gz
fatcat-fc443013d4a004d69c53be3286e33dd30921879e.zip
improve test coverage
Diffstat (limited to 'python/fatcat_tools/transforms')
-rw-r--r--python/fatcat_tools/transforms/elasticsearch.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py
index 0c2c5e46..1d221ebc 100644
--- a/python/fatcat_tools/transforms/elasticsearch.py
+++ b/python/fatcat_tools/transforms/elasticsearch.py
@@ -14,6 +14,7 @@ def check_kbart(year, archive):
def test_check_kbart():
+ assert check_kbart(1990, dict()) == None
assert check_kbart(1990, dict(year_spans=[[2000, 2000]])) == False
assert check_kbart(2000, dict(year_spans=[[2000, 2000]])) == True
assert check_kbart(1950, dict(year_spans=[[1900, 1920], [1990, 2000]])) == False