Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 37 lines (27 sloc) 0.87 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
import os,sys

if __name__ == '__main__':

    gaepath = None
    if len(sys.argv) > 1:
        gaepath = sys.argv[1]
    else:
        for p in sys.path:
            if 'appengine' in p.lower():
                gaepath = p

    if gaepath:
        if not gaepath in sys.path:
            sys.path.insert(0,gaepath)
        sys.path.append(os.path.join(gaepath,'lib','webob'))
        sys.path.append(os.path.join(gaepath,'lib','yaml','lib'))
        

    import libs

    packages = [
        'nose-1.0.0',
        'NoseGAE-0.1.7',
        'WebTest-1.2.2',
        'gaetestbed-0.12'
        ]

    package_path = os.path.join(os.path.dirname(__file__),'libs')
    packages_with_path = map(lambda x:os.path.join(package_path,x),packages)
    map(sys.path.append,packages_with_path)

    import nose
    import nosegae

    nose.main(addplugins=[nosegae.NoseGAE()])
Something went wrong with that request. Please try again.