This commit is contained in:
+9
-3
@@ -3626,9 +3626,15 @@ def generate_test_ausleihen():
|
|||||||
# Fall 3: 5 Tage drüber, Mahnstufe 0 -> Sollte NICHTS tun (da < 14 Tage)
|
# Fall 3: 5 Tage drüber, Mahnstufe 0 -> Sollte NICHTS tun (da < 14 Tage)
|
||||||
due_date_frisch = current_time - datetime.timedelta(days=5)
|
due_date_frisch = current_time - datetime.timedelta(days=5)
|
||||||
|
|
||||||
|
# Je nachdem, ob dein System die User-Felder in Ausleihungen verschlüsselt speichert:
|
||||||
|
# Hier wird encrypt_text verwendet, falls die Funktion im Scope liegt.
|
||||||
|
user_val_1 = encrypt_text("TEST-AUSWEIS-01")
|
||||||
|
user_val_2 = encrypt_text("TEST-AUSWEIS-02")
|
||||||
|
user_val_3 = encrypt_text("TEST-AUSWEIS-03")
|
||||||
|
|
||||||
test_ausleihungen = [
|
test_ausleihungen = [
|
||||||
{
|
{
|
||||||
"User": encrypt_text(user_val_1),
|
"User": user_val_1,
|
||||||
"Item": str(item1_res.inserted_id),
|
"Item": str(item1_res.inserted_id),
|
||||||
"Status": "active",
|
"Status": "active",
|
||||||
"DueDate": due_date_stufe1,
|
"DueDate": due_date_stufe1,
|
||||||
@@ -3636,7 +3642,7 @@ def generate_test_ausleihen():
|
|||||||
"LastUpdated": current_time
|
"LastUpdated": current_time
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"User": encrypt_text(user_val_2),
|
"User": user_val_2,
|
||||||
"Item": str(item2_res.inserted_id),
|
"Item": str(item2_res.inserted_id),
|
||||||
"Status": "active",
|
"Status": "active",
|
||||||
"DueDate": due_date_stufe2,
|
"DueDate": due_date_stufe2,
|
||||||
@@ -3644,7 +3650,7 @@ def generate_test_ausleihen():
|
|||||||
"LastUpdated": due_date_stufe2
|
"LastUpdated": due_date_stufe2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"User": encrypt_text(user_val_3),
|
"User": user_val_3,
|
||||||
"Item": str(item3_res.inserted_id),
|
"Item": str(item3_res.inserted_id),
|
||||||
"Status": "active",
|
"Status": "active",
|
||||||
"DueDate": due_date_frisch,
|
"DueDate": due_date_frisch,
|
||||||
|
|||||||
Reference in New Issue
Block a user