Did I find the right examples for you? yes no

All Samples(16)  |  Call(16)  |  Derive(0)  |  Import(0)

src/d/r/dropbox2-1.7.1/tests/test_session.py   dropbox2(Download)
    def _create_generic_session(self, rest_client, consumer_key='a',
                                consumer_secret='b', access_type='app_folder'):
        return self.Session(consumer_key, consumer_secret, access_type, rest_client=rest_client)
 
 

src/r/i/ringo-0.11.2/ringo/tests/__init__.py   ringo(Download)
        # bind an individual Session to the connection
        DBSession.configure(bind=connection)
        self.session = self.Session(bind=connection)
 
    def tearDown(self):

src/h/i/hiero-0.3.4/hiero/tests/__init__.py   hiero(Download)
 
        # bind an individual Session to the connection
        self.session = self.Session(bind=connection)
 
        self.config.registry.registerUtility(self.session, IDBSession)

src/h/o/horus-0.9.15/horus/tests/__init__.py   horus(Download)
 
        # bind an individual Session to the connection
        self.session = self.Session(bind=connection)
 
        self.config.registry.registerUtility(self.session, IDBSession)

src/p/y/pyramid_signup-0.2/pyramid_signup/tests/__init__.py   pyramid_signup(Download)
 
        # bind an individual Session to the connection
        self.session = self.Session(bind=connection)
 
        self.config.registry.registerUtility(self.session, ISUSession)

src/h/o/horus-HEAD/horus/tests/__init__.py   horus(Download)
 
        # bind an individual Session to the connection
        self.session = self.Session(bind=connection)
 
        self.config.registry.registerUtility(self.session, IDBSession)

src/s/p/spyne-HEAD/spyne/test/test_sqlalchemy_deprecated.py   spyne(Download)
        import hashlib
 
        session = self.Session()
 
        for i in range(1, 10):

src/s/4/s4u.sqlalchemy-HEAD/src/s4u/sqlalchemy/testing.py   s4u.sqlalchemy(Download)
    def setUp(self):
        self.metadata.create_all()
        self.session = self.Session()
 
    def tearDown(self):

src/s/t/stucco_auth-0.6.0/stucco_auth/tests/tests.py   stucco_auth(Download)
    def setUp(self):
        engine = sqlalchemy.create_engine('sqlite:///:memory:', echo=False)
        self.Session = sqlalchemy.orm.sessionmaker(bind=engine)
        session = self.Session()
 
        str(user) # User can str() when user_id is None?
 
        session = self.Session()
        session.add(user)
        session.flush()

src/s/4/s4u.sqlalchemy-3.5/src/s4u/sqlalchemy/testing.py   s4u.sqlalchemy(Download)
    def setUp(self):
        self.metadata.create_all()
        self.session = self.Session()
 
    def tearDown(self):

  1 | 2  Next