def test_happy_path(self, local_master_repos, tmpdir): """Migrate a few repos from the existing master repo into the target organization. """ command = " ".join([ *repobee_plug.cli.CoreCommand.repos.migrate.as_name_tuple(), *BASE_ARGS, *MASTER_REPOS_ARG, "--allow-local-templates", ]) run_repobee(command, workdir=tmpdir, plugins=[_repobee.ext.gitlab]) assert_template_repos_exist(local_master_repos, ORG_NAME)
def test_happy_path(self, local_master_repos, extra_args): """Migrate a few repos from the existing master repo into the target organization. """ command = " ".join([ REPOBEE_GITLAB, *repobee_plug.cli.CoreCommand.repos.migrate.as_name_tuple(), *BASE_ARGS, *MASTER_REPOS_ARG, "--allow-local-templates", ]) result = run_in_docker_with_coverage(command, extra_args=extra_args) assert result.returncode == 0 assert_template_repos_exist(local_master_repos, ORG_NAME)