Spaces:
Sleeping
Sleeping
Update tests/test_graders.py
Browse files- tests/test_graders.py +2 -2
tests/test_graders.py
CHANGED
|
@@ -21,7 +21,7 @@ def test_easy_perfect_score():
|
|
| 21 |
|
| 22 |
def test_null_action_returns_zero():
|
| 23 |
score, breakdown, feedback = grade(None, "easy_001")
|
| 24 |
-
assert score
|
| 25 |
assert "null" in feedback.lower() or "no action" in feedback.lower()
|
| 26 |
|
| 27 |
|
|
@@ -29,7 +29,7 @@ def test_unknown_task_returns_zero():
|
|
| 29 |
action = Action(action_type=ActionType.SUBMIT_ANSWER,
|
| 30 |
payload={"fixed_query": "SELECT 1", "explanation": "test"})
|
| 31 |
score, _, _ = grade(action, "nonexistent_task_999")
|
| 32 |
-
assert score
|
| 33 |
|
| 34 |
|
| 35 |
def test_determinism():
|
|
|
|
| 21 |
|
| 22 |
def test_null_action_returns_zero():
|
| 23 |
score, breakdown, feedback = grade(None, "easy_001")
|
| 24 |
+
assert score == 0.0
|
| 25 |
assert "null" in feedback.lower() or "no action" in feedback.lower()
|
| 26 |
|
| 27 |
|
|
|
|
| 29 |
action = Action(action_type=ActionType.SUBMIT_ANSWER,
|
| 30 |
payload={"fixed_query": "SELECT 1", "explanation": "test"})
|
| 31 |
score, _, _ = grade(action, "nonexistent_task_999")
|
| 32 |
+
assert score == 0.0
|
| 33 |
|
| 34 |
|
| 35 |
def test_determinism():
|