From 058930d42b99f5d9cc38fd96021b9addb78b9cc2 Mon Sep 17 00:00:00 2001 From: ilvalle Date: Wed, 3 Dec 2014 20:42:54 +0100 Subject: [PATCH] test for compileapp --- gluon/tests/test_utils.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gluon/tests/test_utils.py b/gluon/tests/test_utils.py index 3372a73d..ba244ed1 100644 --- a/gluon/tests/test_utils.py +++ b/gluon/tests/test_utils.py @@ -20,5 +20,17 @@ class TestUtils(unittest.TestCase): data = md5_hash("web2py rocks") self.assertEqual(data, '79509f3246a2824dee64635303e99204') +class TestPack(unittest.TestCase): + """ Tests the compileapp.py module """ + + def test_compile(self): + from compileapp import compile_application, remove_compiled_application + import os + for appname in ['welcome', 'admin', 'examples']: + appname_path = os.path.join(os.getcwd(), 'applications', appname) + compile_application(appname_path) + remove_compiled_application(appname_path) + return + if __name__ == '__main__': unittest.main()