Make it possible to add a tag from the Tag Browser
All checks were successful
CI / test (push) Successful in 3m46s
Lint / test (push) Successful in 17s
Trivy / test (push) Successful in 21s

This commit is contained in:
Miguel Jacq 2025-11-15 11:22:40 +11:00
parent b1ae56270a
commit b1ba599e99
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
7 changed files with 63 additions and 4 deletions

View file

@ -141,6 +141,16 @@ def test_list_all_tags(fresh_db):
assert "tag3" in tag_names
def test_add_tag_name_and_color(fresh_db):
"""Test adding a tag's name and color"""
fresh_db.add_tag("new123", "#FF0000")
updated_tags = fresh_db.list_tags()
assert len(updated_tags) == 1
assert updated_tags[0][1] == "new123"
assert updated_tags[0][2] == "#FF0000"
def test_update_tag_name_and_color(fresh_db):
"""Test updating a tag's name and color"""
date_iso = "2024-01-15"