Fix NPE in changing the expiration of a tag
This commit is contained in:
parent
417b3f9fc2
commit
4779e05f55
2 changed files with 8 additions and 1 deletions
|
@ -209,6 +209,13 @@ def test_list_active_tags(initialized_db):
|
|||
# Make sure they are returned.
|
||||
assert_tags(repository, 'foo', 'bar')
|
||||
|
||||
# Set the expirations to be explicitly empty.
|
||||
set_tag_end_ts(footag, None)
|
||||
set_tag_end_ts(bartag, None)
|
||||
|
||||
# Make sure they are returned.
|
||||
assert_tags(repository, 'foo', 'bar')
|
||||
|
||||
# Mark as a tag as expiring in the far future, and make sure it is still returned.
|
||||
set_tag_end_ts(footag, footag.lifetime_start_ts + 10000000)
|
||||
|
||||
|
|
Reference in a new issue