From bc09cd42bb0280074856f50972e92449226c05f6 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 2 Jan 2023 16:21:47 -0800 Subject: [PATCH] operation: tests: Fix warning when test helpers start with 'Test' Don't start the helper class name with 'Test' as it will be treated as a class with test cases to run. Fixes #2288. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/tests/test_operation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/tests/test_operation.py b/plinth/tests/test_operation.py index 2991bb346..21af4dcc6 100644 --- a/plinth/tests/test_operation.py +++ b/plinth/tests/test_operation.py @@ -14,7 +14,7 @@ from ..notification import Notification from ..operation import Operation, OperationsManager -class TestApp(app.App): +class AppTest(app.App): app_id = 'testapp' def __init__(self): @@ -207,7 +207,7 @@ def test_message(app_get): @pytest.mark.django_db def test_update_notification(app_get): """Test that operation notification is created.""" - app_get.return_value = TestApp() + app_get.return_value = AppTest() operation = Operation('testapp', 'op1', Mock(), show_notification=True) note = Notification.get('testapp-operation') assert note.id == 'testapp-operation'