def build(args): workspace = os.path.abspath(args.path) if args.watch: sledge.hammer(workspace, watch=args.watch) else: sledge.hammer(workspace)
def test_import_processor(self): sledge.hammer(test_import, ret=True) result = sledge.get_build_output() self.assertEqual(result, exp['import'])
def test_list_indexing(self): sledge.hammer(test_list, ret=True) result = sledge.get_build_output() self.assertEqual(result, exp['list'])
def test_nullstring(self): sledge.hammer(test_nullstr, ret=True) result = sledge.get_build_output() self.assertEqual(result, '')
def test_id_and_class(self): sledge.hammer(test_id_class, ret=True) result = sledge.get_build_output() self.assertEqual(result, exp['id_class'])
def test_func_code(self): sledge.hammer(test_code, ret=True) result = sledge.get_build_output() self.assertEqual(result, exp['code'])
def test_func_read(self): sledge.hammer(test_read, ret=True) result = sledge.get_build_output() self.assertEqual(result, exp['read'])
def test_func_b64(self): sledge.hammer(test_b64, ret=True) result = sledge.get_build_output() self.assertEqual(result, exp['b64'])
def test_func_encuri(self): sledge.hammer(test_encuri, ret=True) result = sledge.get_build_output() self.assertEqual(str(result), exp['encuri'])
def test_vars(self): sledge.hammer(test_var, ret=True) result = sledge.get_build_output() self.assertEqual(result, exp['var'])