def run_unified()

in l10n_CM/run_l10n.py [0:0]


def run_unified(regions, unified_flags):
    """
    Execute unified tests for multiple regions.

    Args:
        regions (list[str]): A set of region identifiers.
        unified_flags (list[str]): A list of pytest flags to be used.
    """
    unified_tests = get_region_tests("Unified")
    logging.info(f"Testing {live_sites} Sites.")
    for live_site in live_sites:
        # If the live_site is 'demo', skip starting the server
        if live_site == "demo":
            for unified_region in regions:
                run_tests(unified_region, live_site, unified_flags, unified_tests)
        else:
            for unified_region in regions:
                unified_json_path = os.path.join(
                    current_dir, "constants", live_site, unified_region
                )
                if os.path.exists(unified_json_path):
                    with running_server(live_site, unified_region):
                        run_tests(
                            unified_region, live_site, unified_flags, unified_tests
                        )
                else:
                    logging.info(
                        f"No mapping json file for {unified_region} region and {live_site} site."
                    )