コード例 #1
0
ファイル: query_test.py プロジェクト: mari-ja/h
    def test_it_fetches_the_annotations_from_the_database(
            self, fetch_annotations, pyramid_request, search):
        execute(pyramid_request, MultiDict(), self.PAGE_SIZE)

        fetch_annotations.assert_called_once_with(
            pyramid_request.db, search.run.return_value.annotation_ids,
            search.run.return_value.reply_ids)
コード例 #2
0
ファイル: query_test.py プロジェクト: hypothesis/h
    def test_it_fetches_the_annotations_from_the_database(
        self, fetch_annotations, pyramid_request, search
    ):
        execute(pyramid_request, MultiDict(), self.PAGE_SIZE)

        fetch_annotations.assert_called_once_with(
            pyramid_request.db, search.run.return_value.annotation_ids
        )