Commit 79b7432b authored by Guillaume HEUSCH's avatar Guillaume HEUSCH

[test] attempt to figure out whats going on with map_labels

parent 42df0fd6
Pipeline #26409 passed with stage
in 9 minutes and 38 seconds
...@@ -109,17 +109,17 @@ def test_map_labels(): ...@@ -109,17 +109,17 @@ def test_map_labels():
labels = ['1', '4', '7'] labels = ['1', '4', '7']
from ..datasets import map_labels from ..datasets import map_labels
new_labels = map_labels(labels) new_labels = map_labels(labels)
assert '0' in new_labels assert '0' in new_labels, "new_labels = {}".format(new_labels)
assert '1' in new_labels assert '1' in new_labels, "new_labels = {}".format(new_labels)
assert '2' in new_labels assert '2' in new_labels, "new_labels = {}".format(new_labels)
#new_labels = sorted(new_labels) #new_labels = sorted(new_labels)
#assert new_labels == ['0', '1', '2'] #assert new_labels == ['0', '1', '2']
new_labels = map_labels(labels, start_index = 5) new_labels = map_labels(labels, start_index = 5)
#new_labels = sorted(new_labels) #new_labels = sorted(new_labels)
assert '5' in new_labels assert '5' in new_labels, "new_labels = {}".format(new_labels)
assert '6' in new_labels assert '6' in new_labels, "new_labels = {}".format(new_labels)
assert '7' in new_labels assert '7' in new_labels, "new_labels = {}".format(new_labels)
#assert new_labels == ['5', '6', '7'] #assert new_labels == ['5', '6', '7']
......
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