From 4795937f1444f24ba0b6fc28fafa03a4902baca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Sch=C3=A4fer?= Date: Wed, 28 Feb 2024 09:14:07 +0100 Subject: [PATCH] rename setup to setup_method --- tests/test_obs_img_utils_api.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/test_obs_img_utils_api.py b/tests/test_obs_img_utils_api.py index f6e4720..581c3db 100644 --- a/tests/test_obs_img_utils_api.py +++ b/tests/test_obs_img_utils_api.py @@ -25,7 +25,7 @@ class TestAPI: - def setup(self): + def setup_method(self, cls): self.downloader = OBSImageUtil( 'https://provo-mirror.opensuse.org/repositories/', 'openSUSE-Leap-15.0-Azure', @@ -33,9 +33,6 @@ def setup(self): target_directory='tests/data' ) - def setup_method(self, cls): - self.setup() - def test_version_compare(self): result = self.downloader._version_compare('1.0', '2.0', '<=') assert result