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

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

src/m/e/mediagoblin-0.6.1/mediagoblin/tests/tools.py   mediagoblin(Download)
 
    # ... and detach from session:
    Session.expunge(test_user)
 
    return test_user
    cs = CommentSubscription.query.filter_by(id=cs.id).first()
 
    Session.expunge(cs)
 
    return cs
    cn = CommentNotification.query.filter_by(id=cn.id).first()
 
    Session.expunge(cn)
 
    return cn
        entry = MediaEntry.query.filter_by(id=entry.id).first()
 
        Session.expunge(entry)
 
    return entry
 
    # ... and detach from session:
    Session.expunge(coll)
 
    return coll

src/j/o/JoshuaGoblin-HEAD/mediagoblin/tests/tools.py   JoshuaGoblin(Download)
 
    # ... and detach from session:
    Session.expunge(test_user)
 
    return test_user
    cs = CommentSubscription.query.filter_by(id=cs.id).first()
 
    Session.expunge(cs)
 
    return cs
    cn = CommentNotification.query.filter_by(id=cn.id).first()
 
    Session.expunge(cn)
 
    return cn
        entry = MediaEntry.query.filter_by(id=entry.id).first()
 
        Session.expunge(entry)
 
    return entry
 
    # ... and detach from session:
    Session.expunge(coll)
 
    return coll

src/j/o/JoshuaGoblin-HEAD/mediagoblin/tests/test_submission.py   JoshuaGoblin(Download)
 
        our_user.save()
        Session.expunge(our_user)
 
    def test_normal_jpg(self):

src/j/o/JoshuaGoblin-HEAD/mediagoblin/tests/test_persona.py   JoshuaGoblin(Download)
            test_user = mg_globals.database.User.query.filter_by(
                username=u'chris').first()
            Session.expunge(test_user)
 
            # Add another user for _test_edit_persona

src/j/o/JoshuaGoblin-HEAD/mediagoblin/tests/test_openid.py   JoshuaGoblin(Download)
            test_user = mg_globals.database.User.query.filter_by(
                username=u'chris').first()
            Session.expunge(test_user)
 
            # Log back in

src/j/o/JoshuaGoblin-HEAD/mediagoblin/tests/test_ldap.py   JoshuaGoblin(Download)
        test_user = mg_globals.database.User.query.filter_by(
            username=u'chris').first()
        Session.expunge(test_user)
 
        # Log back in

src/m/e/mediagoblin-0.6.1/mediagoblin/tests/test_submission.py   mediagoblin(Download)
 
        our_user.save()
        Session.expunge(our_user)
 
    def test_normal_jpg(self):

src/m/e/mediagoblin-0.6.1/mediagoblin/tests/test_persona.py   mediagoblin(Download)
            test_user = mg_globals.database.User.query.filter_by(
                username=u'chris').first()
            Session.expunge(test_user)
 
            # Add another user for _test_edit_persona

src/m/e/mediagoblin-0.6.1/mediagoblin/tests/test_openid.py   mediagoblin(Download)
            test_user = mg_globals.database.User.query.filter_by(
                username=u'chris').first()
            Session.expunge(test_user)
 
            # Log back in

src/m/e/mediagoblin-0.6.1/mediagoblin/tests/test_ldap.py   mediagoblin(Download)
        test_user = mg_globals.database.User.query.filter_by(
            username=u'chris').first()
        Session.expunge(test_user)
 
        # Log back in