コード例 #1
0
ファイル: test_deploy_scripts.py プロジェクト: raaron/pydroid
    def setUpClass(cls):
        """Create a new test project and install and run it properly."""

        if is_device_rooted():
            os.chdir(TESTS_DIR)
            test_utils.stop_app(PACKAGE_NAME)
            hello_world.hello_world(show_log=False)

            # Wait for termination of the app installation before doing fast deploys.
            time.sleep(6)
            test_utils.stop_app(PACKAGE_NAME)
コード例 #2
0
ファイル: test_deploy_scripts.py プロジェクト: raaron/pydroid
 def test_hello_python_api(self):
     """
     Test creating, deploying and running a new hello world project
     via python api.
     """
     hello_world.hello_world(show_log=False)