def test_script():
    """ Tests a call to script barbante.api.consolidate_product_templates.
    """
    result = script.main([tests.TEST_ENV])
    log.debug(result)
    result_json = json.dumps(result)
    nose.tools.ok_(result_json)  # a well-formed json is enough
示例#2
0
文件: reel.py 项目: jp-amis/barbante
 def do_post(self, *args):
     env = self.get_argument("env")
     return consolidate_product_templates.main([env])