bartongroup / slivka

http://bartongroup.github.io/slivka/
Apache License 2.0
7 stars 3 forks source link

Usage statistics tests skipped when using mongomock #144

Open warownia1 opened 2 weeks ago

warownia1 commented 2 weeks ago

Usage statistics calculator relies on $dateTrunc query in the aggregation pipeline for segregating jobs. This feature was added in mongodb 5.0 and is not currently present in the mongomock implementation. Consider adding a custom command-line argument to pytest that allows switching to a real database during tests. See: pytest_addoption