summaryrefslogtreecommitdiffstats
path: root/python/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-07-06 16:03:59 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-07-30 18:17:54 -0700
commit7282174320c7ec9367bddd26fa6f14e424c8480a (patch)
tree3b0cb780c09143b16225f6fb82c6b248cd9dfb20 /python/tests
parenta4e21d7651aded342c495e38a76e3d965ab2ff76 (diff)
downloadfatcat-7282174320c7ec9367bddd26fa6f14e424c8480a.tar.gz
fatcat-7282174320c7ec9367bddd26fa6f14e424c8480a.zip
include new-style preservation+release_type aggs in container stats
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/web_search.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/python/tests/web_search.py b/python/tests/web_search.py
index 1e9b61b3..c90ad6e5 100644
--- a/python/tests/web_search.py
+++ b/python/tests/web_search.py
@@ -114,7 +114,18 @@ def test_container_stats(app, mocker):
'container_stats': {'buckets': {
'is_preserved': {'doc_count': 461939},
'in_kbart': {'doc_count': 461939},
- 'in_web': {'doc_count': 2797}}}},
+ 'in_web': {'doc_count': 2797}}},
+ 'preservation': {
+ 'doc_count_error_upper_bound': 0, 'sum_other_doc_count': 0,
+ 'buckets': [{'key': 'bright', 'doc_count': 4143}, {'key': 'none',
+ 'doc_count': 101}, {'key': 'dark', 'doc_count': 79}, {'key':
+ 'shadows_only', 'doc_count': 5}]},
+ 'release_type': {
+ 'doc_count_error_upper_bound': 0, 'sum_other_doc_count': 0,
+ 'buckets': [{'key': 'article-journal', 'doc_count': 4324}, {'key':
+ 'article', 'doc_count': 2}, {'key': '_unknown', 'doc_count': 1},
+ {'key': 'editorial', 'doc_count': 1}]},
+ },
'hits': {'total': 461939, 'hits': [], 'max_score': 0.0},
'_shards': {'successful': 5, 'total': 5, 'skipped': 0, 'failed': 0},
'took': 50