Skip to content

Commit 47ec290

Browse files
authored
128-revival-add-more-tests (#132)
* Fixed docstring * Renamed test_structure -> test_coverage * Fixed bug in test_coverage * WIP Refactoring * xfail coverage test * Add tests base * Add more test prototypes to test_base * Add tests for Search and SearchMeta * Add accumulator test
1 parent 4b65c90 commit 47ec290

File tree

8 files changed

+1003
-573
lines changed

8 files changed

+1003
-573
lines changed

src/monggregate/operators/accumulators/accumulator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class AccumulatorEnum(StrEnum):
1717
"""Enumeration of available accumulators"""
1818

19-
ACCUMULATOR ="$accumulator"
19+
ACCUMULATOR = "$accumulator"
2020
ADD_TO_SET = "$addToSet"
2121
AVG = "$avg"
2222
BOTTOM = "$bottom"
@@ -37,11 +37,13 @@ class AccumulatorEnum(StrEnum):
3737
TOP = "$top"
3838
TOP_N = "$topN"
3939

40+
4041
# Classes
4142
# -----------------------------------------
4243
class Accumulator(Operator, ABC):
4344
"""Base class for accumulators"""
4445

46+
4547
# Type aliases
4648
# -----------------------------------------
4749
AccumulatorExpression = dict[AccumulatorEnum, Any]

0 commit comments

Comments
 (0)