Skip to content

Commit

Permalink
format, migration graph
Browse files Browse the repository at this point in the history
  • Loading branch information
fidoriel committed Sep 25, 2023
1 parent b911125 commit 8589cb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class Migration(migrations.Migration):
dependencies = [
("evaluation", "0139_userprofile_startpage"),
("evaluation", "0140_alter_question_type"),
]

operations = [
Expand Down
4 changes: 3 additions & 1 deletion evap/evaluation/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ def test_edit_display_name(self):
page = self.app.get(self.url, user=self.responsible)
self.assertContains(page, "testdisplayname")


class TestNegativeLikertQuestions(WebTest):
@classmethod
def setUpTestData(cls):
Expand Down Expand Up @@ -229,6 +230,7 @@ def test_answer_ordering(self):
self.assertLess(page.index("Strongly<br>disagree"), page.index("Strongly<br>agree"))
self.assertIn("The answer scale is inverted for this question", page)


class TestNotebookView(WebTest):
url = reverse("evaluation:profile_edit") # is used exemplarily, notebook is accessed from all pages
note = "Data is so beautiful"
Expand All @@ -242,4 +244,4 @@ def test_notebook(self):
form.submit()

user.refresh_from_db()
self.assertEqual(user.notes, self.note)
self.assertEqual(user.notes, self.note)

0 comments on commit 8589cb1

Please sign in to comment.