diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-06-23 20:08:02 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-06-23 20:08:02 -0700 |
commit | d234b45e1e25d18bc9d987bf7d0b7fc922e16d8b (patch) | |
tree | a09eeac217e34a15635705e2d6ae2393e831f94a /tests/test_directories.py | |
parent | 3b7a058f7c35201c7218d4a8e1ece17d3c30fbdb (diff) | |
download | chocula-d234b45e1e25d18bc9d987bf7d0b7fc922e16d8b.tar.gz chocula-d234b45e1e25d18bc9d987bf7d0b7fc922e16d8b.zip |
expand test coverage to kbart, summarize
Diffstat (limited to 'tests/test_directories.py')
-rw-r--r-- | tests/test_directories.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_directories.py b/tests/test_directories.py index b366192..c208810 100644 --- a/tests/test_directories.py +++ b/tests/test_directories.py @@ -27,3 +27,16 @@ def test_all(config, database): counts = loader.index_file(database) assert counts["total"] >= 20 assert counts["inserted"] > 5 + + for cls in ALL_CHOCULA_KBART_CLASSES: + loader = cls(config) + counts = loader.index_file(database) + assert counts["total"] >= 10 + assert counts["inserted"] >= 1 + + # TODO: database.load_fatcat_containers(config) + # TODO: database.load_fatcat_stats(config) + # TODO: database.load_homepage_status(config) + database.summarize() + database.export_fatcat() + database.export_urls() |