MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / test_has_config_true

Method test_has_config_true

tests/test_per_file_config.py:313–317  ·  view source on GitHub ↗

Test has_config returns True when config section exists.

(self, temp_yaml_files)

Source from the content-addressed store, hash-verified

311 assert config["temperature"] == 0.2
312
313 def test_has_config_true(self, temp_yaml_files):
314 """Test has_config returns True when config section exists."""
315 parser = YAMLTaskParser()
316 yaml_data = parser.load_task(temp_yaml_files["main_yaml"])
317 assert parser.has_config(yaml_data) is True
318
319 def test_has_config_false(self, temp_yaml_files):
320 """Test has_config returns False when no config section."""

Callers

nothing calls this directly

Calls 3

load_taskMethod · 0.95
has_configMethod · 0.95
YAMLTaskParserClass · 0.90

Tested by

no test coverage detected