f8 clean tests

pull/207/head
evelynmitchell 2 years ago
parent 075a620de8
commit 3307e07f3a

@ -326,7 +326,6 @@ def test_flow_response_filtering(flow_instance):
def test_flow_undo_last(flow_instance):
# Test the undo functionality
response1 = flow_instance.run("Task 1")
response2 = flow_instance.run("Task 2")
previous_state, message = flow_instance.undo_last()
assert response1 == previous_state
assert "Restored to" in message
@ -552,7 +551,6 @@ def test_flow_rollback(flow_instance):
# Test rolling back to a previous state
state1 = flow_instance.get_state()
flow_instance.change_prompt("New prompt")
state2 = flow_instance.get_state()
flow_instance.rollback_to_state(state1)
assert flow_instance.get_current_prompt() == state1["current_prompt"]
assert flow_instance.get_instructions() == state1["instructions"]

@ -100,6 +100,7 @@ def test_set_interaction_rules(collaboration):
assert hasattr(collaboration, "interaction_rules")
assert collaboration.interaction_rules == rules
def test_repr(collaboration):
repr_str = repr(collaboration)
assert isinstance(repr_str, str)

Loading…
Cancel
Save