Commit dd6364d6 authored by Mikaël Salson's avatar Mikaël Salson

tests/unit/.../SampleSets.py: Test adding a new tag

When editing we add an existing tag and we check that we recover it properly.
parent 81db8189
Pipeline #59273 passed with stages
in 6 minutes and 21 seconds
......@@ -111,7 +111,7 @@ class Sample_setController(unittest.TestCase):
"first_name" : "bab",
"last_name" : "bab",
"birth" : "2010-10-10",
"info" : "bab",
"info" : "bab #ALL ",
"id_label" : "bab",
"sample_set_id": pat.sample_set_id
}
......
......@@ -36,7 +36,11 @@ class SamplesetsModel(unittest.TestCase):
names = samples.get_tag_names()
self.assertEquals(len(names), 1)
# Tags should have been removed by editing the entry in
# testEditForm()
self.assertFalse('first_fake_tag' in names[fake_sample_set_id])
self.assertFalse('sec_fake_tag' in names[fake_sample_set_id])
# But we should have a ref to the ALL tag
self.assertTrue('ALL' in names[fake_sample_set_id])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment