Beispiel #1
0
    def test_it(self, search_index):
        indexer.add_annotations_between_times(
            sentinel.start_time, sentinel.end_time, sentinel.tag
        )

        search_index._queue.add_between_times.assert_called_once_with(
            sentinel.start_time, sentinel.end_time, sentinel.tag
        )
Beispiel #2
0
    def test_it(self, search_index):
        indexer.add_annotations_between_times(sentinel.start_time,
                                              sentinel.end_time, sentinel.tag)

        search_index._queue.add_between_times.assert_called_once_with(  # pylint:disable=protected-access
            sentinel.start_time, sentinel.end_time, sentinel.tag)