Skip to content

Commit

Permalink
Drop redundant code paths
Browse files Browse the repository at this point in the history
url and base keys are already handled some lines above.
  • Loading branch information
deathaxe committed Nov 10, 2023
1 parent 7578157 commit 720c5fb
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,14 +525,6 @@ def check_release_key_values(self, data, dependency):
elif k == 'date':
self.assertRegex(v, r"^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d$")

elif k == 'url':
self.assertRegex(v, r'^https?://')

elif k == 'base':
self.assertRegex(v, self.release_base_regex,
'The base url is badly formatted or '
'invalid')

elif k == 'tags':
self.assertTrue(bool(v),
'"tags" must be `true` or a string of length>0')
Expand Down

0 comments on commit 720c5fb

Please sign in to comment.