From ab7c07e830a483a7e173b22bdbeae3adc14757a0 Mon Sep 17 00:00:00 2001 From: RumovZ Date: Sat, 12 Jun 2021 17:34:46 +0200 Subject: [PATCH] Use fields_check() instead of duplicate_or_empty() --- pylib/tests/test_collection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pylib/tests/test_collection.py b/pylib/tests/test_collection.py index 95b941708..f92daa365 100644 --- a/pylib/tests/test_collection.py +++ b/pylib/tests/test_collection.py @@ -74,15 +74,15 @@ def test_noteAddDelete(): c0 = note.cards()[0] assert "three" in c0.q() # it should not be a duplicate - assert not note.duplicate_or_empty() + assert not note.fields_check() # now let's make a duplicate note2 = col.newNote() note2["Front"] = "one" note2["Back"] = "" - assert note2.duplicate_or_empty() + assert note2.fields_check() # empty first field should not be permitted either note2["Front"] = " " - assert note2.duplicate_or_empty() + assert note2.fields_check() def test_fieldChecksum():