Since the move to Web-UI by default (NXDRIVE-2223), that test no more passes:
self = <tests.old_functional.test_context_menu.TestContextMenu testMethod=test_get_metadata_infos> def test_get_metadata_infos(self): """This will test "Access online" and "Edit metadata" entries.""" manager = self.manager_1 local = self.local_1 # Document does not inexist with pytest.raises(ValueError): manager.get_metadata_infos("/a folder/a file.bin") # Document exists local.make_folder("/", "a folder") file = local.make_file("/a folder", "a file.bin", content=b"something") self.wait_sync() path = local.abspath(file) assert isfile(path) # "Access online" entry url = manager.get_metadata_infos(path) assert url.startswith("http") assert "token" not in url # "Edit metadata" entry url_edit = manager.get_metadata_infos(path, edit=True) assert url.startswith("http") > assert url_edit != url E AssertionError: assert 'http://localhost:8080/nuxeo/ui#!/doc/2fc4da32-e358-42a5-8de9-994d56f906af' != 'http://localhost:8080/nuxeo/ui#!/doc/2fc4da32-e358-42a5-8de9-994d56f906af' file = PosixPath('a folder/a file.bin') local = <LocalTest base_folder=PosixPath('/tmp/635e8fc8/1/drive/test_get_metadata_infos-linux-26429'), is_case_sensitive=None> manager = <Manager home=PosixPath('/tmp/635e8fc8/1/conf')> path = PosixPath('/tmp/635e8fc8/1/drive/test_get_metadata_infos-linux-26429/a folder/a file.bin') self = <tests.old_functional.test_context_menu.TestContextMenu testMethod=test_get_metadata_infos> url = 'http://localhost:8080/nuxeo/ui#!/doc/2fc4da32-e358-42a5-8de9-994d56f906af' url_edit = 'http://localhost:8080/nuxeo/ui#!/doc/2fc4da32-e358-42a5-8de9-994d56f906af'
- is caused by
-
NXDRIVE-2223 Select Web UI by default in Settings
- Resolved
- Is referenced in