Skip to content

Commit

Permalink
tests: test to validate feedback generation
Browse files Browse the repository at this point in the history
  • Loading branch information
omarkohl committed Jan 3, 2025
1 parent cd510e9 commit 36aa60d
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Date of the event,"1. Practical use: For my life, what we did today will have ...",2. The atmosphere / vibe was ...,3. The amount of content / exercises covered was ...,4. The difficulty level of the content / discussion was ...,5. Structure: On the whole the event needed ...,6. The moderation should have been ...,7. Host preparation: The content / exercises were ...,8. Changing your mind: The event made me ...,9. Do you think you will come to one (or more) of the next three events?,"10. If you answered ""probably no"" in the previous question or are very uncertain, why is that?",11. What did you like the most today?,12. What did you like the least?
2024-02-02,1,1,3,3,3,3,2,3,probably no,"('I live too far away.',)",,
2024-02-02,4,1,3,3,3,3,2,4,probably yes,,Die Übung,Nichts
2024-02-02,4,2,3,3,3,3,1,2,probably yes,,,
2024-02-02,4,2,3,3,3,3,1,5,probably yes,,Was fun,
2024-02-02,5,2,3,2,3,3,2,3,probably yes,,,
2024-02-16,3,2,3,3,3,3,2,3,probably yes,,,
2024-02-16,4,2,3,3,2,3,2,4,probably yes,,Cool games,too much game explanation time due to new players joining in between
2024-02-16,5,2,5,4,3,3,3,5,probably yes,,"Mich mal wieder ein bisschen an die Karriere-Poker Strategie erinnern. War leider zu kurz, um komplett rein zu kommen.",Insgesamt ist das Feedback-Formular eher unpassend für einen Spieleabend. ;)
2024-03-01,2,1,3,4,3,3,2,2,probably yes,,Der Raum war schön groß.,
2024-03-01,2,2,3,3,3,3,4,2,probably yes,,,
2024-12-20,2,1,3,2,3,3,2,2,probably yes,,Most participants knew each other and I had the impression that the topic itself plus the joking about it made us connect as a group even further.,The discussions were sometimes a little bit shallow and I would have liked to dive deeper into some details of the readings.
2024-12-20,2,1,3,2,3,3,3,5,probably yes,,Sharing our ritual ideas,Lorem ipsum
2024-12-20,3,2,3,3,2,3,2,2,probably yes,,Interesting insights,
2024-12-20,4,2,3,3,3,3,1,2,probably yes,,"Humour, groups discussions",
2024-12-20,5,2,3,3,3,3,3,4,probably yes,,,Lorem ipsum.
21 changes: 21 additions & 0 deletions statistics/tests/test_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,24 @@ def test_generate_attendance_files(
)
cugp(pytestconfig, golden_dir / "newcomer.csv", newcomer_path)


def test_generate_feedback_file(
golden_dir: pathlib.Path,
testdata_dir: pathlib.Path,
tmpdir: pathlib.Path,
pytestconfig: pytest.Config,
):
from ratfr_statistics.parse import generate_feedback_file

source_path_de = testdata_dir / "Event Feedback (Responses) - DE.csv"
source_path_en = testdata_dir / "Event Feedback (Responses) - EN.csv"
feedback_path = tmpdir / "feedback.csv"

generate_feedback_file(
source_path_de,
source_path_en,
feedback_path,
remove_source_files=False,
)

cugp(pytestconfig, golden_dir / "feedback.csv", feedback_path)
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Timestamp,Datum der Veranstaltung,1. Was wir heute getan haben wird für mich ... praktischen Nutzen haben.,2. Die Atmosphäre / Stimmung war ...,3. Die Menge an Inhalt / Übungen war ...,4. Das Schwierigkeitsniveau des Inhalts / der Diskussion war ...,5. Struktur: Insgesamt brauchte die Veranstaltung ...,6. Die Moderation hätte ... sein sollen.,7. Der Inhalt / die Übungen waren ... vorbereitet.,8. Die Veranstaltung hat mich dazu gebracht ... zu hinterfragen.,"9. Glaubst du, dass du zu einer (oder mehreren) der nächsten drei Veranstaltungen kommen wirst?","10. Wenn du die vorherige Frage mit „eher nein“ beantwortet hast oder sehr unsicher bist, warum?",11. Was hat dir heute am besten gefallen?,13. (optional) Name,12. Was hat dir am wenigsten gefallen?
02/02/2024 20:37:08,02/02/2024,4,1,3,3,3,3,2,4,eher ja,,Die Übung,Frodo,Nichts
02/02/2024 20:37:19,02/02/2024,4,2,3,3,3,3,1,2,eher ja,,,,
02/02/2024 20:38:36,02/02/2024,4,2,3,3,3,3,1,5,eher ja,,Was fun,Gandalf,
02/02/2024 20:40:28,02/02/2024,1,1,3,3,3,3,2,3,eher nein,Ich wohne zu weit weg.,,,
02/02/2024 21:06:50,02/02/2024,5,2,3,2,3,3,2,3,eher ja,,,,
16/02/2024 20:32:46,16/02/2024,3,2,3,3,3,3,2,3,eher ja,,,,
16/02/2024 20:39:35,16/02/2024,4,2,3,3,2,3,2,4,eher ja,,Cool games,Arwen,too much game explanation time due to new players joining in between
17/02/2024 13:29:00,16/02/2024,5,2,5,4,3,3,3,5,eher ja,,"Mich mal wieder ein bisschen an die Karriere-Poker Strategie erinnern. War leider zu kurz, um komplett rein zu kommen.",,Insgesamt ist das Feedback-Formular eher unpassend für einen Spieleabend. ;)
01/03/2024 20:38:20,01/03/2024,2,2,3,3,3,3,4,2,eher ja,,,,
01/03/2024 20:38:29,01/03/2024,2,1,3,4,3,3,2,2,eher ja,,Der Raum war schön groß.,Elrond,
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Timestamp,Date of the event,"1. Practical use: For my life, what we did today will have ...",2. The atmosphere / vibe was ...,3. The amount of content / exercises covered was ...,4. The difficulty level of the content / discussion was ...,5. Structure: On the whole the event needed ...,6. The moderation should have been ...,7. Host preparation: The content / exercises were ...,8. Changing your mind: The event made me ...,9. Do you think you will come to one (or more) of the next three events?,"10. If you answered ""probably no"" in the previous question or are very uncertain, why is that?",11. What did you like the most today?,13. (optional) Name,12. What did you like the least?
20/12/2024 20:40:59,20/12/2024,2,1,3,2,3,3,3,5,probably yes,,Sharing our ritual ideas,Legolas,Lorem ipsum
20/12/2024 20:41:51,20/12/2024,3,2,3,3,2,3,2,2,probably yes,,Interesting insights,Arwen,
20/12/2024 20:44:30,20/12/2024,5,2,3,3,3,3,3,4,probably yes,,,Gimli ,"Lorem ipsum."
21/12/2024 10:39:50,20/12/2024,2,1,3,2,3,3,2,2,probably yes,,Most participants knew each other and I had the impression that the topic itself plus the joking about it made us connect as a group even further.,Bilbo,The discussions were sometimes a little bit shallow and I would have liked to dive deeper into some details of the readings.
21/12/2024 10:41:06,20/12/2024,4,2,3,3,3,3,1,2,probably yes,,"Humour, groups discussions",Boromir,

0 comments on commit 36aa60d

Please sign in to comment.