def run_test_commands(conda_env_file, test_commands):
    """
    Run a list of tests within a conda environment.

    Args:
        conda_env_file (str): The name of the conda environment file used to create the conda environment.
        test_commands (:obj:`list` of :obj:`TestCommand): List of test commands to run.
    """
    return [x.run(conda_env_file) for x in test_commands]