

def test_get_targets(self):
    GoogleDriveUserSettings.remove()
    addons = [GoogleDriveUserSettings(), GoogleDriveUserSettings(oauth_settings=GoogleDriveOAuthSettingsFactory())]
    for addon in targets:
        addon.save()
    targets = get_targets()
    assert_equal(targets.count(), 1)
    assert_equal(targets[0]._id, addons[(- 1)]._id)

dataset/ETHPy150Open CenterForOpenScience/osf.io/scripts/tests/test_googledrive_migrate_to_external_account.py TestGoogleDriveMigration.test_get_targets/VarMisuse@36/55 `addons`->`targets`