From 5fe340ca37201138b7688f8353283ec325e4bd64 Mon Sep 17 00:00:00 2001 From: diligejy Date: Fri, 19 Jan 2024 21:15:56 +0900 Subject: [PATCH] TDD Pandas - [RED] Test if result has results grouped by students group --- PyCon_PL/Test_Driven_Pandas/tests/test_gradebook.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PyCon_PL/Test_Driven_Pandas/tests/test_gradebook.py b/PyCon_PL/Test_Driven_Pandas/tests/test_gradebook.py index e76fb81..e555d9d 100644 --- a/PyCon_PL/Test_Driven_Pandas/tests/test_gradebook.py +++ b/PyCon_PL/Test_Driven_Pandas/tests/test_gradebook.py @@ -1,6 +1,6 @@ import pandas as pd -def test_x(): +def test_results_are_grouped_by_student_group(): students = [{ "ID" : 1, "Name" : "Doe, John", @@ -9,4 +9,6 @@ def test_x(): "Group" : 1, }] students_df = pd.DataFrame(data=students).set_index("ID") - assert False \ No newline at end of file + + result = {} + assert list(result.keys()) == [1] \ No newline at end of file