Changeset 1690

Show
Ignore:
Timestamp:
09/20/08 17:08:05 (2 months ago)
Author:
nick
Message:

Added a punit gae app and updated gae_client accordingly

Location:
pyamf/sandbox/nick
Files:
11 added
1 modified

Legend:

Unmodified
Added
Removed
  • pyamf/sandbox/nick/gae_client.py

    r1686 r1690  
    3636 
    3737    The structure of the app is as follows: 
    38      - /tests/ - Returns a list of tests to run, in json format. There are 
    39         three keys, 'tests', 'expected', and 'skipped'. 'tests' are a list of 
    40         all the tests that should be run to complete the test suite. 'expected' 
    41         is a list of tests that are expected to fail. This means that test 
    42         suites that were built with more open environments can pass. 'skipped' 
    43         means tests that were not meant to run at all on the GAE platform. 
    44      - /run/{module}/{test_case}/{method} - Runs an individual test. The 
     38     - / - Returns a list of tests to run, in json format. There are three 
     39        keys, 'tests', 'expected', and 'skipped'. 
     40 
     41        'tests' are a list of all the tests that should be run to complete the 
     42        test suite. 
     43 
     44        'expected' is a list of tests that are expected to fail. This means 
     45        that test suites that were built with more open environments can pass. 
     46 
     47        'skipped' means tests that were not meant to run at all on the GAE 
     48        platform. 
     49     - /{module}.{test_case}.{method} - Runs an individual test. The 
    4550        response is a json object that contains the following keys: 'test' - 
    4651        the fully qualified name of the test, 'skipped' - if C{True} then this 
     
    8085 
    8186    def get_all_tests(self): 
    82         ret = simplejson.loads(self._get_url('tests/')) 
     87        ret = simplejson.loads(self._get_url('')) 
    8388 
    8489        self.tests = ret[u'tests'] 
     
    9499 
    95100        return simplejson.loads(self._get_url( 
    96             str('run/' + mod + '/' + tc + '/' + meth + '/'))) 
     101            str(mod + '.' + tc + '.' + meth))) 
    97102 
    98103    def run_test_suite(self, out):