def clean_migrated_mongo_mt(clean_mongo): deviceauth_cli = CliDeviceauth() useradm_cli = CliUseradm() for t in ['tenant1', 'tenant2']: deviceauth_cli.migrate(t) useradm_cli.migrate(t) yield clean_mongo
def clean_migrated_mongo(clean_mongo): deviceauth_cli = CliDeviceauth() useradm_cli = CliUseradm() deviceauth_cli.migrate() useradm_cli.migrate() yield clean_mongo