From 3ebb3e1acf4105c1d89502802713d1aec488f1e1 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Fri, 11 Mar 2022 23:04:09 +0000 Subject: [PATCH] Enhance tests --- test_models.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test_models.py b/test_models.py index 2f6254e..3b02ce6 100644 --- a/test_models.py +++ b/test_models.py @@ -15,7 +15,7 @@ from app.models import ( def test_notecolours_get_colour(session): """Create a colour record and retrieve all colours""" - note_colour = "#abcdef" + note_colour = "#0bcdef" NoteColours(session, substring="substring", colour=note_colour) records = NoteColours.get_all(session) @@ -27,8 +27,8 @@ def test_notecolours_get_colour(session): def test_notecolours_get_all(session): """Create two colour records and retrieve them all""" - note1_colour = "#abcdef" - note2_colour = "#00ff00" + note1_colour = "#1bcdef" + note2_colour = "#20ff00" NoteColours(session, substring="note1", colour=note1_colour) NoteColours(session, substring="note2", colour=note2_colour) @@ -39,7 +39,7 @@ def test_notecolours_get_all(session): def test_notecolours_get_colour_none(session): - note_colour = "#abcdef" + note_colour = "#3bcdef" NoteColours(session, substring="substring", colour=note_colour) result = NoteColours.get_colour(session, "xyz") @@ -47,7 +47,7 @@ def test_notecolours_get_colour_none(session): def test_notecolours_get_colour_match(session): - note_colour = "#abcdef" + note_colour = "#4bcdef" nc = NoteColours(session, substring="sub", colour=note_colour) assert nc