| Conditions | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """Tests for the DB controller.""" |
||
| 38 | def test_bootstrap_indexes(self): |
||
| 39 | """Test bootstrap_indexes""" |
||
| 40 | self.eline.bootstrap_indexes() |
||
| 41 | expected_indexes = [ |
||
| 42 | ("evcs", [("circuit_scheduler", 1)]), |
||
| 43 | ] |
||
| 44 | mock = self.eline.mongo.bootstrap_index |
||
| 45 | assert mock.call_count == len(expected_indexes) |
||
| 46 | |||
| 58 |