modified: activity_yaml_validator.py
modified: app.py modified: research/activity29-battleship.yaml modified: research/activity29-testship.yaml modified: research/guarded_ai.py modified: tests/functional/test_activity_flows.py modified: tests/functional/test_battleship_pre_script.py modified: tests/functional/test_guarded_ai.py modified: tests/unit/test_activity_yaml_validator.py modified: tests/unit/test_app_feedback.py modified: tests/unit/test_guarded_ai.py
This commit is contained in:
parent
d4d697db59
commit
f90df2ae57
11 changed files with 573 additions and 286 deletions
|
|
@ -379,7 +379,9 @@ class TestRealActivityFiles(unittest.TestCase):
|
|||
mock_get_client.return_value = (self.mock_client, "test-model")
|
||||
|
||||
# Load actual activity3.yaml
|
||||
activity_file = Path(__file__).parent.parent.parent / "research" / "activity3.yaml"
|
||||
activity_file = (
|
||||
Path(__file__).parent.parent.parent / "research" / "activity3.yaml"
|
||||
)
|
||||
activity = guarded_ai.load_yaml_activity(str(activity_file))
|
||||
|
||||
# Should have section_5 as the terminal section
|
||||
|
|
@ -408,7 +410,9 @@ class TestRealActivityFiles(unittest.TestCase):
|
|||
mock_get_client.return_value = (self.mock_client, "test-model")
|
||||
|
||||
activity_file = (
|
||||
Path(__file__).parent.parent.parent / "research" / "activity17-choose-adventure.yaml"
|
||||
Path(__file__).parent.parent.parent
|
||||
/ "research"
|
||||
/ "activity17-choose-adventure.yaml"
|
||||
)
|
||||
activity = guarded_ai.load_yaml_activity(str(activity_file))
|
||||
|
||||
|
|
@ -450,7 +454,9 @@ class TestRealActivityFiles(unittest.TestCase):
|
|||
mock_get_client.return_value = (self.mock_client, "test-model")
|
||||
|
||||
activity_file = (
|
||||
Path(__file__).parent.parent.parent / "research" / "activity20-n-plus-1.yaml"
|
||||
Path(__file__).parent.parent.parent
|
||||
/ "research"
|
||||
/ "activity20-n-plus-1.yaml"
|
||||
)
|
||||
activity = guarded_ai.load_yaml_activity(str(activity_file))
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,9 @@ class TestBattleshipPreScript(unittest.TestCase):
|
|||
def test_battleship_yaml_has_pre_script(self):
|
||||
"""Test that battleship YAML loads and has pre_script"""
|
||||
activity_file = (
|
||||
Path(__file__).parent.parent.parent / "research" / "activity29-battleship.yaml"
|
||||
Path(__file__).parent.parent.parent
|
||||
/ "research"
|
||||
/ "activity29-battleship.yaml"
|
||||
)
|
||||
activity = guarded_ai.load_yaml_activity(str(activity_file))
|
||||
|
||||
|
|
@ -57,7 +59,9 @@ class TestBattleshipPreScript(unittest.TestCase):
|
|||
def test_battleship_pre_script_execution_simulation(self):
|
||||
"""Test simulated battleship pre_script execution"""
|
||||
activity_file = (
|
||||
Path(__file__).parent.parent.parent / "research" / "activity29-battleship.yaml"
|
||||
Path(__file__).parent.parent.parent
|
||||
/ "research"
|
||||
/ "activity29-battleship.yaml"
|
||||
)
|
||||
activity = guarded_ai.load_yaml_activity(str(activity_file))
|
||||
|
||||
|
|
@ -96,7 +100,11 @@ class TestBattleshipPreScript(unittest.TestCase):
|
|||
|
||||
def test_testship_yaml_has_pre_script(self):
|
||||
"""Test that testship YAML also has pre_script"""
|
||||
activity_file = Path(__file__).parent.parent.parent / "research" / "activity29-testship.yaml"
|
||||
activity_file = (
|
||||
Path(__file__).parent.parent.parent
|
||||
/ "research"
|
||||
/ "activity29-testship.yaml"
|
||||
)
|
||||
activity = guarded_ai.load_yaml_activity(str(activity_file))
|
||||
|
||||
# Should also have pre_script (same structure as battleship)
|
||||
|
|
|
|||
|
|
@ -320,7 +320,9 @@ class TestActivityYAMLChanges(unittest.TestCase):
|
|||
"""Test that activity3's new terminal section loads correctly"""
|
||||
import guarded_ai as guarded_ai
|
||||
|
||||
activity_file = Path(__file__).parent.parent.parent / "research" / "activity3.yaml"
|
||||
activity_file = (
|
||||
Path(__file__).parent.parent.parent / "research" / "activity3.yaml"
|
||||
)
|
||||
activity = guarded_ai.load_yaml_activity(str(activity_file))
|
||||
|
||||
# Should have section_5 now
|
||||
|
|
@ -348,7 +350,9 @@ class TestActivityYAMLChanges(unittest.TestCase):
|
|||
import guarded_ai as guarded_ai
|
||||
|
||||
activity_file = (
|
||||
Path(__file__).parent.parent.parent / "research" / "activity17-choose-adventure.yaml"
|
||||
Path(__file__).parent.parent.parent
|
||||
/ "research"
|
||||
/ "activity17-choose-adventure.yaml"
|
||||
)
|
||||
activity = guarded_ai.load_yaml_activity(str(activity_file))
|
||||
|
||||
|
|
@ -375,7 +379,9 @@ class TestActivityYAMLChanges(unittest.TestCase):
|
|||
"activity29-battleship.yaml",
|
||||
"activity29-testship.yaml",
|
||||
]:
|
||||
activity_file = Path(__file__).parent.parent.parent / "research" / battleship_file
|
||||
activity_file = (
|
||||
Path(__file__).parent.parent.parent / "research" / battleship_file
|
||||
)
|
||||
activity = guarded_ai.load_yaml_activity(str(activity_file))
|
||||
|
||||
# Find exit transitions and verify they go to step_4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue