From ee9cb7a66d9674ba30aca6cd35ad5cffffee7f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Garc=C3=ADa=20Amor?= Date: Sun, 1 Dec 2024 21:42:47 +0100 Subject: [PATCH] Fixes unit tests --- tests/frontend/test_folder.py | 6 +++--- tests/frontend/test_user.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/frontend/test_folder.py b/tests/frontend/test_folder.py index d382885..3dab5d2 100644 --- a/tests/frontend/test_folder.py +++ b/tests/frontend/test_folder.py @@ -28,12 +28,12 @@ class FolderTestCase(FrontendTestBase): self._login("bob", "B0b") rv = self.client.get("/folder/add", follow_redirects=True) self.assertIn("There's nothing much to see", rv.data) - self.assertNotIn("Add Folder", rv.data) + self.assertNotIn("Add new folder", rv.data) self._logout() self._login("alice", "Alic3") rv = self.client.get("/folder/add") - self.assertIn("Add Folder", rv.data) + self.assertIn("Add new folder", rv.data) def test_add_post(self): self._login("alice", "Alic3") @@ -44,7 +44,7 @@ class FolderTestCase(FrontendTestBase): rv = self.client.post("/folder/add", data={"path": "path"}) self.assertIn("required", rv.data) rv = self.client.post("/folder/add", data={"name": "name", "path": "path"}) - self.assertIn("Add Folder", rv.data) + self.assertIn("Add new folder", rv.data) rv = self.client.post( "/folder/add", data={"name": "name", "path": "tests/assets"}, diff --git a/tests/frontend/test_user.py b/tests/frontend/test_user.py index 26922a5..245a128 100644 --- a/tests/frontend/test_user.py +++ b/tests/frontend/test_user.py @@ -49,7 +49,7 @@ class UserTestCase(FrontendTestBase): self.assertIn("There's nothing much to see", rv.data) self.assertNotIn("

bob

", rv.data) rv = self.client.get("/user/me") - self.assertIn("

bob

", rv.data) + self.assertIn("

bob

", rv.data) self.assertIn("tests", rv.data) def test_update_client_prefs(self):