Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(84)  |  Call(81)  |  Derive(0)  |  Import(3)

src/p/y/pyroonga-HEAD/pyroonga/tests/unit/test___init__.py   pyroonga(Download)
def test_import():
    from pyroonga import (
        connect,
        Groonga,
        GroongaError,

src/p/y/pyroonga-HEAD/pyroonga/tests/functional/odm/test_table.py   pyroonga(Download)
import pytest
 
from pyroonga import Groonga, exceptions
from pyroonga.odm import attributes, query
from pyroonga.odm.attributes import (
            body = Column()
 
        grn = Groonga()
        Table.bind(grn)
        test_utils.sendquery('table_create --name %s --flags TABLE_HASH_KEY'
            name = Column()
 
        grn = Groonga()
        Table.bind(grn)
        test_utils.sendquery('table_create --name %s --flags TABLE_HASH_KEY'
    def Table3(self, Table):
        class Tb(Table):
            name = Column()
        grn = Groonga()
        Table.bind(grn)
    def test_bind(self, Table):
        with pytest.raises(TypeError):
            Table.bind('dummy')
        grn = Groonga()
        Table.bind(grn)

src/p/y/pyroonga-HEAD/pyroonga/tests/functional/odm/test_query.py   pyroonga(Download)
    def Table1(self, Table):
        class Tb(Table):
            name = table.Column()
        grn = pyroonga.Groonga()
        Table.bind(grn)

src/p/y/pyroonga-0.5.2/pyroonga/tests/functional/odm/test_table.py   pyroonga(Download)
import pytest
 
from pyroonga import Groonga, exceptions
from pyroonga.odm import attributes, query
from pyroonga.odm.attributes import (
            body = Column()
 
        grn = Groonga()
        Table.bind(grn)
        test_utils.sendquery('table_create --name %s --flags TABLE_HASH_KEY'
            name = Column()
 
        grn = Groonga()
        Table.bind(grn)
        test_utils.sendquery('table_create --name %s --flags TABLE_HASH_KEY'
    def Table3(self, Table):
        class Tb(Table):
            name = Column()
        grn = Groonga()
        Table.bind(grn)
    def test_bind(self, Table):
        with pytest.raises(TypeError):
            Table.bind('dummy')
        grn = Groonga()
        Table.bind(grn)

src/p/y/pyroonga-0.5.2/pyroonga/tests/functional/odm/test_query.py   pyroonga(Download)
    def Table1(self, Table):
        class Tb(Table):
            name = table.Column()
        grn = pyroonga.Groonga()
        Table.bind(grn)