Skip to content

Commit

Permalink
minimal_test_data_results.json geändert, ist jetzt cooler, außerdem t…
Browse files Browse the repository at this point in the history
…est_tools zusammengeführt, jetzt alles clean
  • Loading branch information
ybrnr committed Jul 1, 2024
1 parent 8bac154 commit beb2bfb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 29 deletions.
32 changes: 5 additions & 27 deletions evap/results/fixtures/minimal_test_data_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,6 @@
"type": 2
}
},
{
"pk": 6,
"model": "evaluation.question",
"fields": {
"questionnaire": 2,
"text_en": "can you see me?",
"text_de": "can you see me?",
"allows_additional_textanswers": false,
"type": 0
}
},
{
"pk": "00000000-0000-0000-0000-000000000001",
"model": "evaluation.textanswer",
Expand All @@ -135,7 +124,7 @@
"pk": "00000000-0000-0000-0000-000000000002",
"model": "evaluation.textanswer",
"fields": {
"answer": ".general_orig_hidden.",
"answer": ".general_orig_deleted.",
"question": 3,
"original_answer": null,
"contribution": 1,
Expand Down Expand Up @@ -190,7 +179,7 @@
"pk": "00000000-0000-0000-0000-000000000012",
"model": "evaluation.textanswer",
"fields": {
"answer": ".responsible_contributor_orig_hidden.",
"answer": ".responsible_contributor_orig_deleted.",
"question": 1,
"original_answer": null,
"contribution": 6,
Expand Down Expand Up @@ -223,24 +212,13 @@
"pk": "00000000-0000-0000-0000-000000000015",
"model": "evaluation.textanswer",
"fields": {
"answer": ".responsible_contributor_orig_notreviewed.",
"answer": ".responsible_contributor_orig_unreviewed.",
"question": 1,
"original_answer": null,
"contribution": 6,
"review_decision": "UN"
}
},
{
"pk": "00000000-0000-0000-0000-000000000016",
"model": "evaluation.textanswer",
"fields": {
"answer": ".proxy_user_visibility_info.",
"question": 6,
"original_answer": null,
"contribution": 1,
"review_decision": "PU"
}
},
{
"pk": "00000000-0000-0000-0000-000000000017",
"model": "evaluation.textanswer",
Expand All @@ -256,7 +234,7 @@
"pk": "00000000-0000-0000-0000-000000000018",
"model": "evaluation.textanswer",
"fields": {
"answer": ".responsible_contributor_additional_orig_hidden.",
"answer": ".responsible_contributor_additional_orig_deleted.",
"question": 2,
"original_answer": null,
"contribution": 6,
Expand All @@ -278,7 +256,7 @@
"pk": "00000000-0000-0000-0000-000000000020",
"model": "evaluation.textanswer",
"fields": {
"answer": ".general_additional_orig_hidden.",
"answer": ".general_additional_orig_deleted.",
"question": 4,
"original_answer": null,
"contribution": 1,
Expand Down
4 changes: 2 additions & 2 deletions evap/results/tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,8 @@ def test_contributors_and_delegate_count_in_textanswer_visibility_info(self):
for user in UserProfile.objects.all():
represented_users = [user] + list(user.represented_users.all())
for i, textanswer in enumerate(textanswers):
if can_textanswer_be_seen_by(user, represented_users, textanswer, "full"):
if can_textanswer_be_seen_by(user, [user], textanswer, "full"):
if can_textanswer_be_seen_by(user, represented_users, textanswer, "full", "full"):
if can_textanswer_be_seen_by(user, [user], textanswer, "full", "full"):
users_seeing_contribution[i][0].add(user)
else:
users_seeing_contribution[i][1].add(user)
Expand Down

0 comments on commit beb2bfb

Please sign in to comment.