Bringt dem run-Befehl bei, Ordner und Funktionen auszuführen.
Stellt die Webserver-Tests so um, dass sie Funktions-"Pakete" benutzen. Siehe diesen Kommentar
Fixt kleinere Edge-Cases im Webserver:
Repetitions wurden "vergessen", wenn sie keine Daten submitten, weil dann der Listeneintrag fehlte. Es wird jetzt immer ein hidden-Input namens ...[i][qpy_repetition_item_marker] pro Wiederholung submittet
Es flog ein ein Error, wenn die ganze Repetition keine Daten submittet. Es wird jetzt immer ein hidden-Input namens ...[qpy_repetition_marker] submittet
Sollte die ganze Form nichts submitten, flog ein KeyError in parse_form_data.
Während der Tests arbeitet der StateStorage jetzt in einem TempDir, das danach gelöscht wird. Vorher hatten sich die Tests beeinflusst, weil sie States im "echten" Verzeichnis gelesen und geschrieben haben.
Basiert auf #57. Server-PR https://github.com/questionpy-org/questionpy-server/pull/82.
run
-Befehl bei, Ordner und Funktionen auszuführen.hidden
-Input namens...[i][qpy_repetition_item_marker]
pro Wiederholung submittethidden
-Input namens...[qpy_repetition_marker]
submittetKeyError
inparse_form_data
.StateStorage
jetzt in einem TempDir, das danach gelöscht wird. Vorher hatten sich die Tests beeinflusst, weil sie States im "echten" Verzeichnis gelesen und geschrieben haben.