tests fail when not run in the tests directory due to environment/module import issues
To reproduce, execute nosetests -v
from fedbiomed folder. Tests will correctly execute and most of them succeed, but three fail with a tag conflict such as:
Traceback (most recent call last):
File "/Users/fcremone/opt/anaconda3/envs/fedbiomed-researcher/lib/python3.9/unittest/mock.py", line 1336, in patched
return func(*newargs, **newkeywargs)
File "/Users/fcremone/dev/fedbiomed/tests/test_dataset_manager.py", line 517, in test_dataset_manager_18_add_database_real_images_example_based
dataset_id = self.dataset_manager.add_database(name='test',
File "/Users/fcremone/dev/fedbiomed/fedbiomed/node/dataset_manager.py", line 369, in add_database
assert len(self.search_by_tags(tags)) == 0, 'Data tags must be unique'
AssertionError: Data tags must be unique
This was observed by both Sergen and myself, so I'm assuming this is a reproducible bug and not just due to my environment.