Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
harshitshah4 committed Jul 16, 2024
1 parent a26c171 commit 12afb0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pymobiledevice3/cli/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ def profile_cloud_configuration(service_provider: LockdownClient, config):
config_json = json.load(config)
logger.info(f'applying cloud configuration {config_json}')
MobileConfigService(lockdown=service_provider).set_cloud_configuration(config_json)
logger.info(f'applied cloud configuration')

logger.info('applied cloud configuration')


@profile_group.command('store', cls=Command)
Expand All @@ -89,6 +88,7 @@ def profile_set_wifi_power(service_provider: LockdownClient, state):
""" change Wi-Fi power state """
MobileConfigService(lockdown=service_provider).set_wifi_power_state(state == 'on')


@profile_group.command('erase-device', cls=Command)
@click.option('--preserve-data-plan/--no-preserve-data-plan', default=True, help='Preserves eSIM / data plan after erase')
@click.option('--disallow-proximity-setup/--no-disallow-proximity-setup', default=False,
Expand All @@ -97,5 +97,5 @@ def profile_erase_device(service_provider: LockdownClient, preserve_data_plan: b
""" erase device """
logger.info(f'erasing device with preserve_data_plan: {preserve_data_plan}, '
f'disallow_proximity_setup: {disallow_proximity_setup}')
# MobileConfigService(lockdown=service_provider).erase_device(preserve_data_plan, disallow_proximity_setup)
MobileConfigService(lockdown=service_provider).erase_device(preserve_data_plan, disallow_proximity_setup)
logger.info(f'erased device')

0 comments on commit 12afb0e

Please sign in to comment.