Skip to content

Commit

Permalink
rename setup to setup_method
Browse files Browse the repository at this point in the history
  • Loading branch information
schaefi committed Feb 28, 2024
1 parent 81c47b9 commit 4795937
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test_obs_img_utils_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,14 @@


class TestAPI:
def setup(self):
def setup_method(self, cls):
self.downloader = OBSImageUtil(
'https://provo-mirror.opensuse.org/repositories/',
'openSUSE-Leap-15.0-Azure',
arch='x86_64',
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
Expand Down

0 comments on commit 4795937

Please sign in to comment.