diff --git a/emission/tests/analysisTests/modeinferTests/TestPipeline.py b/emission/tests/analysisTests/modeinferTests/TestPipeline.py index 5828e9122..6c987e797 100644 --- a/emission/tests/analysisTests/modeinferTests/TestPipeline.py +++ b/emission/tests/analysisTests/modeinferTests/TestPipeline.py @@ -53,7 +53,7 @@ def setUp(self): def tearDown(self): logging.debug("Clearing related databases") - # self.clearRelatedDb() + self.clearRelatedDb() def clearRelatedDb(self): edb.get_timeseries_db().delete_many({"user_id": self.testUUID}) diff --git a/emission/tests/analysisTests/plottingTests/TestGeojsonFeatureConverter.py b/emission/tests/analysisTests/plottingTests/TestGeojsonFeatureConverter.py index 7b979e6f8..415c706a2 100644 --- a/emission/tests/analysisTests/plottingTests/TestGeojsonFeatureConverter.py +++ b/emission/tests/analysisTests/plottingTests/TestGeojsonFeatureConverter.py @@ -45,8 +45,8 @@ def tearDown(self): self.clearRelatedDb() def clearRelatedDb(self): - edb.get_timeseries_db().remove({"user_id": self.testUUID}) - edb.get_analysis_timeseries_db().remove({"user_id": self.testUUID}) + edb.get_timeseries_db().delete_many({"user_id": self.testUUID}) + edb.get_analysis_timeseries_db().delete_many({"user_id": self.testUUID}) def testTripGeojson(self): eaist.segment_current_trips(self.testUUID)