This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.join(File.dirname(__FILE__), 'spec_helper') | |
describe 'function query' do | |
it "should send query to solr with function query from a block" do | |
session.search Post do | |
keywords('pizza') do | |
boost(function { :average_rating }) | |
end | |
end | |
connection.should have_last_search_including(:bf, 'average_rating_f') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import traceback | |
from aiohttp import * | |
def test(): | |
connector = TCPConnector() | |
finished = [] | |
@asyncio.coroutine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import os | |
import signal | |
import functools | |
import socket | |
import traceback | |
from aiohttp import * | |
import aiohttp | |
from aiohttp import web |