AGPL-3.0-only, a source link in the app, and everything on dev since #5 #6
@@ -12,6 +12,7 @@ from pathlib import Path
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
from inkwell.colors import NOTE_COLORS
|
||||||
from inkwell.notes.checklist import parse_items, render_item
|
from inkwell.notes.checklist import parse_items, render_item
|
||||||
from inkwell.notes.helpers import derive_display_title
|
from inkwell.notes.helpers import derive_display_title
|
||||||
from inkwell.notes.recurrence import REMINDER_RECURRENCES
|
from inkwell.notes.recurrence import REMINDER_RECURRENCES
|
||||||
@@ -52,3 +53,9 @@ def test_display_titles(case):
|
|||||||
|
|
||||||
def test_recurrences():
|
def test_recurrences():
|
||||||
assert REMINDER_RECURRENCES == set(FIXTURE["recurrences"])
|
assert REMINDER_RECURRENCES == set(FIXTURE["recurrences"])
|
||||||
|
|
||||||
|
|
||||||
|
def test_palette_keys():
|
||||||
|
"""The palette the server accepts is the fixture's hues plus `default`, the key
|
||||||
|
unrecognised input lands on. The web checks the same hues (DERIVED_TINT_KEYS)."""
|
||||||
|
assert NOTE_COLORS == {"default", *FIXTURE["tint"]["keys"]}
|
||||||
|
|||||||
Reference in New Issue
Block a user