prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Remove ViewTest where possible
  Right now we have a `class ViewTest`, for which there is one subclass for each view that we have.
  
  For views that we have tested properly, it provides no additional value and I I propose to replace it with the original `WebTest`. 
  
  Originally I proposed to remove it altogether and copypaste its test to all the test cases that wouldn't have any valuable test otherwise. @janno42 convinced me to leave it there and rename it to `WebTestWith200Check` instead.
  
  </issue>
  <code>
  [start of evap/evaluation/migrations/0002_initial_data.py]
  1 from django.db import migrations
  2 from django.contrib.auth.models import Group
  3 
  4 
  5 def insert_emailtemplates(apps, _schema_editor):
  6     emailtemplates = [
  7         ("Lecturer Review Notice", "[EvaP] New Course ready for approval"),
  8         ("Student Reminder", "[EvaP] Evaluation period is ending"),
  9         ("Publishing Notice", "[EvaP] A course has been published"),
  10         ("Login Key Created", "[EvaP] A login key was created"),
  11     ]
  12 
  13     EmailTemplate = apps.get_model("evaluation", "EmailTemplate")
  14 
  15     for name, subject in emailtemplates:
  16         if not EmailTemplate.objects.filter(name=name).exists():
  17             EmailTemplate.objects.create(name=name, subject=subject, body="")
  18 
  19     Group.objects.create(name="Staff")
  20 
  21 
  22 class Migration(migrations.Migration):
  23 
  24     dependencies = [
  25         ('evaluation', '0001_initial'),
  26     ]
  27 
  28     operations = [
  29         migrations.RunPython(insert_emailtemplates),
  30     ]
  31
  [end of evap/evaluation/migrations/0002_initial_data.py]
  [start of evap/grades/migrations/0002_initial_data.py]
  1 from django.db import migrations
  2 from django.contrib.auth.models import Group
  3 
  4 
  5 def add_group(_apps, _schema_editor):
  6     Group.objects.create(name="Grade publisher")
  7 
  8 
  9 class Migration(migrations.Migration):
  10 
  11     dependencies = [
  12         ('grades', '0001_initial'),
  13     ]
  14 
  15     operations = [
  16         migrations.RunPython(add_group),
  17     ]
  18
  [end of evap/grades/migrations/0002_initial_data.py]
  [start of evap/evaluation/migrations/0055_reviewer_group.py]
  1 from django.contrib.auth.models import Group
  2 from django.db import migrations
  3 
  4 
  5 def add_group(_apps, _schema_editor):
  6     Group.objects.create(name="Reviewer")
  7 
  8 
  9 def delete_group(_apps, _schema_editor):
  10     Group.objects.get(name="Reviewer").delete()
  11 
  12 
  13 class Migration(migrations.Migration):
  14 
  15     dependencies = [
  16         ('evaluation', '0054_userprofile_language'),
  17     ]
  18 
  19     operations = [
  20         migrations.RunPython(add_group, reverse_code=delete_group),
  21     ]
  22
  [end of evap/evaluation/migrations/0055_reviewer_group.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/evap/evaluation/migrations/0002_initial_data.py b/evap/evaluation/migrations/0002_initial_data.py
  --- a/evap/evaluation/migrations/0002_initial_data.py
  +++ b/evap/evaluation/migrations/0002_initial_data.py
  @@ -1,5 +1,4 @@
   from django.db import migrations
  -from django.contrib.auth.models import Group
   
   
   def insert_emailtemplates(apps, _schema_editor):
  @@ -16,6 +15,7 @@
           if not EmailTemplate.objects.filter(name=name).exists():
               EmailTemplate.objects.create(name=name, subject=subject, body="")
   
  +    Group = apps.get_model("auth", "Group")
       Group.objects.create(name="Staff")
   
   
  diff --git a/evap/evaluation/migrations/0055_reviewer_group.py b/evap/evaluation/migrations/0055_reviewer_group.py
  --- a/evap/evaluation/migrations/0055_reviewer_group.py
  +++ b/evap/evaluation/migrations/0055_reviewer_group.py
  @@ -1,12 +1,13 @@
  -from django.contrib.auth.models import Group
   from django.db import migrations
   
   
  -def add_group(_apps, _schema_editor):
  +def add_group(apps, _schema_editor):
  +    Group = apps.get_model("auth", "Group")
       Group.objects.create(name="Reviewer")
   
   
  -def delete_group(_apps, _schema_editor):
  +def delete_group(apps, _schema_editor):
  +    Group = apps.get_model("auth", "Group")
       Group.objects.get(name="Reviewer").delete()
   
   
  diff --git a/evap/grades/migrations/0002_initial_data.py b/evap/grades/migrations/0002_initial_data.py
  --- a/evap/grades/migrations/0002_initial_data.py
  +++ b/evap/grades/migrations/0002_initial_data.py
  @@ -1,8 +1,8 @@
   from django.db import migrations
  -from django.contrib.auth.models import Group
   
   
  -def add_group(_apps, _schema_editor):
  +def add_group(apps, _schema_editor):
  +    Group = apps.get_model("auth", "Group")
       Group.objects.create(name="Grade publisher")
  
verification_info: {"golden_diff": "diff --git a/evap/evaluation/migrations/0002_initial_data.py b/evap/evaluation/migrations/0002_initial_data.py\n--- a/evap/evaluation/migrations/0002_initial_data.py\n+++ b/evap/evaluation/migrations/0002_initial_data.py\n@@ -1,5 +1,4 @@\n from django.db import migrations\n-from django.contrib.auth.models import Group\n \n \n def insert_emailtemplates(apps, _schema_editor):\n@@ -16,6 +15,7 @@\n         if not EmailTemplate.objects.filter(name=name).exists():\n             EmailTemplate.objects.create(name=name, subject=subject, body=\"\")\n \n+    Group = apps.get_model(\"auth\", \"Group\")\n     Group.objects.create(name=\"Staff\")\n \n \ndiff --git a/evap/evaluation/migrations/0055_reviewer_group.py b/evap/evaluation/migrations/0055_reviewer_group.py\n--- a/evap/evaluation/migrations/0055_reviewer_group.py\n+++ b/evap/evaluation/migrations/0055_reviewer_group.py\n@@ -1,12 +1,13 @@\n-from django.contrib.auth.models import Group\n from django.db import migrations\n \n \n-def add_group(_apps, _schema_editor):\n+def add_group(apps, _schema_editor):\n+    Group = apps.get_model(\"auth\", \"Group\")\n     Group.objects.create(name=\"Reviewer\")\n \n \n-def delete_group(_apps, _schema_editor):\n+def delete_group(apps, _schema_editor):\n+    Group = apps.get_model(\"auth\", \"Group\")\n     Group.objects.get(name=\"Reviewer\").delete()\n \n \ndiff --git a/evap/grades/migrations/0002_initial_data.py b/evap/grades/migrations/0002_initial_data.py\n--- a/evap/grades/migrations/0002_initial_data.py\n+++ b/evap/grades/migrations/0002_initial_data.py\n@@ -1,8 +1,8 @@\n from django.db import migrations\n-from django.contrib.auth.models import Group\n \n \n-def add_group(_apps, _schema_editor):\n+def add_group(apps, _schema_editor):\n+    Group = apps.get_model(\"auth\", \"Group\")\n     Group.objects.create(name=\"Grade publisher\")\n", "issue": "Remove ViewTest where possible\nRight now we have a `class ViewTest`, for which there is one subclass for each view that we have.\r\n\r\nFor views that we have tested properly, it provides no additional value and I I propose to replace it with the original `WebTest`. \r\n\r\nOriginally I proposed to remove it altogether and copypaste its test to all the test cases that wouldn't have any valuable test otherwise. @janno42 convinced me to leave it there and rename it to `WebTestWith200Check` instead.\n", "before_files": [{"content": "from django.db import migrations\nfrom django.contrib.auth.models import Group\n\n\ndef insert_emailtemplates(apps, _schema_editor):\n    emailtemplates = [\n        (\"Lecturer Review Notice\", \"[EvaP] New Course ready for approval\"),\n        (\"Student Reminder\", \"[EvaP] Evaluation period is ending\"),\n        (\"Publishing Notice\", \"[EvaP] A course has been published\"),\n        (\"Login Key Created\", \"[EvaP] A login key was created\"),\n    ]\n\n    EmailTemplate = apps.get_model(\"evaluation\", \"EmailTemplate\")\n\n    for name, subject in emailtemplates:\n        if not EmailTemplate.objects.filter(name=name).exists():\n            EmailTemplate.objects.create(name=name, subject=subject, body=\"\")\n\n    Group.objects.create(name=\"Staff\")\n\n\nclass Migration(migrations.Migration):\n\n    dependencies = [\n        ('evaluation', '0001_initial'),\n    ]\n\n    operations = [\n        migrations.RunPython(insert_emailtemplates),\n    ]\n", "path": "evap/evaluation/migrations/0002_initial_data.py"}, {"content": "from django.db import migrations\nfrom django.contrib.auth.models import Group\n\n\ndef add_group(_apps, _schema_editor):\n    Group.objects.create(name=\"Grade publisher\")\n\n\nclass Migration(migrations.Migration):\n\n    dependencies = [\n        ('grades', '0001_initial'),\n    ]\n\n    operations = [\n        migrations.RunPython(add_group),\n    ]\n", "path": "evap/grades/migrations/0002_initial_data.py"}, {"content": "from django.contrib.auth.models import Group\nfrom django.db import migrations\n\n\ndef add_group(_apps, _schema_editor):\n    Group.objects.create(name=\"Reviewer\")\n\n\ndef delete_group(_apps, _schema_editor):\n    Group.objects.get(name=\"Reviewer\").delete()\n\n\nclass Migration(migrations.Migration):\n\n    dependencies = [\n        ('evaluation', '0054_userprofile_language'),\n    ]\n\n    operations = [\n        migrations.RunPython(add_group, reverse_code=delete_group),\n    ]\n", "path": "evap/evaluation/migrations/0055_reviewer_group.py"}]}