From 13bb3d2b7228480fd4b03662d021911342fc87e4 Mon Sep 17 00:00:00 2001 From: "Nina.Hakansson" Date: Mon, 15 Apr 2024 12:55:39 +0200 Subject: [PATCH] fix tests after flake8 --- nwcsafpps_runner/tests/test_level1c_runner.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nwcsafpps_runner/tests/test_level1c_runner.py b/nwcsafpps_runner/tests/test_level1c_runner.py index 5803cef..f6a86f7 100644 --- a/nwcsafpps_runner/tests/test_level1c_runner.py +++ b/nwcsafpps_runner/tests/test_level1c_runner.py @@ -139,10 +139,8 @@ def create_config_from_yaml(yaml_content_str): class TestPublishMessage(unittest.TestCase): """Test publication of messages.""" - @patch('nwcsafpps_runner.message_utils.socket.gethostname') - def test_create_publish_message(self, gethostname): + def test_create_publish_message(self): """Test the creation of the publish message.""" - gethostname.return_value = "my_local_server" my_fake_level1c_file = '/my/level1c/file/path/level1c.nc' input_msg = Message.decode(rawstr=TEST_INPUT_MSG)