From 40663b7b5a8eeb92e2c14df72c74308fdf7e11a1 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 23 Jun 2020 20:45:55 -0700 Subject: [PATCH] context_processor: tests: Use already available config fixture Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/tests/test_context_processors.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plinth/tests/test_context_processors.py b/plinth/tests/test_context_processors.py index 867c30000..168811274 100644 --- a/plinth/tests/test_context_processors.py +++ b/plinth/tests/test_context_processors.py @@ -8,7 +8,6 @@ from unittest.mock import MagicMock, Mock, patch import pytest from django.http import HttpRequest -from plinth import cfg from plinth import context_processors as cp from plinth import menu as menu_module @@ -20,9 +19,8 @@ def fixture_menu(): @patch('plinth.notification.Notification') -def test_common(Notification): +def test_common(Notification, load_cfg): """Verify that the common() function returns the correct values.""" - cfg.read() # initialize config settings request = HttpRequest() request.path = '/aaa/bbb/ccc/'