def run(cookies, path, target): # Override cookies for any new remote objects from forge import remote remote.override_cookies = cookies build(cookies, path, target) with cd(path): # TODO: HAAACK, should extract an interface to the build tools # that both the CLI and web interfaces back onto instead of # simulating calls to the CLI forge_main.handle_primary_options(['run', '-v']) forge_main.handle_secondary_options('run', [target]) forge_main.run(['--general.interactive', 'no'])
def test_not_android(self, _assert_have_target_folder, _assert_have_development_folder, build): main.handle_secondary_options('run', ['firefox']) main.run([]) generate_dynamic = build.import_generate_dynamic.return_value generate_dynamic.customer_goals.run_app.assert_called_once()