Skip to content

Commit

Permalink
Update assets_test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
marwin1991 authored Dec 19, 2023
1 parent 97aaf41 commit 86a7c1c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/release/assets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class TestAssetsLink(unittest.TestCase):
def test_assets_link_creation(self):
init_str_resolver("1.1.1")
init_str_resolver("1.1.1", "alamaKota")

link_config = ReleaseAssetsLinkConfig('Test Asset', 'http://example.com/test_asset', 'image')

Expand All @@ -20,7 +20,7 @@ def test_assets_link_creation(self):

class TestAssets(unittest.TestCase):
def test_assets_creation(self):
init_str_resolver("1.1.1")
init_str_resolver("1.1.1", "alamaKota")

assets_config = ReleaseAssetsConfig([
ReleaseAssetsLinkConfig('Test Asset 1', 'http://example.com/test_asset_1', 'image'),
Expand All @@ -38,7 +38,7 @@ def test_assets_creation(self):
self.assertEqual(assets.links[1].link_type, 'other')

def test_assets_json_empty(self):
init_str_resolver("1.1.1")
init_str_resolver("1.1.1", "alamaKota")

assets_config = ReleaseAssetsConfig([])
assets = Assets(assets_config)
Expand All @@ -48,7 +48,7 @@ def test_assets_json_empty(self):
self.assertEqual(json, '{"links": []}')

def test_assets_json(self):
init_str_resolver("1.1.1")
init_str_resolver("1.1.1", "alamaKota")

assets_config = ReleaseAssetsConfig([
ReleaseAssetsLinkConfig('Test Asset 1', 'http://example.com/test_asset_1', 'image'),
Expand All @@ -58,4 +58,4 @@ def test_assets_json(self):

json = assets.json()

self.assertEqual(json, '{"links": [{"name": "Test Asset 1", "url": "http://example.com/test_asset_1", "link_type": "image"}, {"name": "Test Asset 2", "url": "http://example.com/test_asset_2", "link_type": "other"}]}')
self.assertEqual(json, '{"links": [{"name": "Test Asset 1", "url": "http://example.com/test_asset_1", "link_type": "image"}, {"name": "Test Asset 2", "url": "http://example.com/test_asset_2", "link_type": "other"}]}')

0 comments on commit 86a7c1c

Please sign in to comment.