parameters: (cls, suite_name)
return_statement: return utils.load_yaml_file(suite_path)
docstring: Get the suite config object in the given file.
docstring_summary: Get the suite config object in the given file.
docstring_tokens: Get the suite config object in the given file .
function: def get_config_obj(cls, suite_name):
          """Get the suite config object in the given file."""
          if suite_name in cls.get_named_suites():
              # Check if is a named suite first for efficiency.
              suite_path = cls.get_named_suites()[suite_name]
          elif fs.is_yaml_file(suite_name):
              # Check if is a path to a YAML file.
              if os.path.isfile(suite_name):
                  suite_path = suite_name
              else:
                  raise ValueError("Expected a suite YAML config, but got '%s'" % suite_name)
          else:
              # Not an explicit suite, return None.
              return None
  
          return utils.load_yaml_file(suite_path)
function_tokens: def get_config_obj ( cls , suite_name ) : if suite_name in cls . get_named_suites ( ) : # Check if is a named suite first for efficiency. suite_path = cls . get_named_suites ( ) [ suite_name ] elif fs . is_yaml_file ( suite_name ) : # Check if is a path to a YAML file. if os . path . isfile ( suite_name ) : suite_path = suite_name else : raise ValueError ( "Expected a suite YAML config, but got '%s'" % suite_name ) else : # Not an explicit suite, return None. return None return utils . load_yaml_file ( suite_path )