Error in flask server test

Hello,
I am having some difficulty in understanding the error pasted below which is returned when I try to run a test for MSS - server on my local machine

(mssdev) C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\tests\_test_mscolab>pytest test_server.py       
====================================================== test session starts ======================================================
platform win32 -- Python 3.10.8, pytest-8.0.0, pluggy-1.4.0
PyQt5 5.15.9 -- Qt runtime 5.15.2 -- Qt compiled 5.15.2
rootdir: C:\Users\Gaurav Sharma\Desktop\OpenSource\mss
configfile: pytest.ini
plugins: anyio-4.2.0, cov-4.1.0, qt-4.4.0, reverse-1.7.0, timeout-2.2.0, xdist-3.5.0
timeout: 30.0s
timeout method: thread
timeout func_only: False
collected 28 items

test_server.py::Test_Server::test_initialize_managers PASSED                                                               [  3%]
test_server.py::Test_Server::test_home PASSED                                                                              [  7%]
test_server.py::Test_Server::test_hello PASSED                                                                             [ 10%]
test_server.py::Test_Server::test_register_user PASSED                                                                     [ 14%]
test_server.py::Test_Server::test_check_login PASSED                                                                       [ 17%]
test_server.py::Test_Server::test_get_auth_token PASSED                                                                    [ 21%]
test_server.py::Test_Server::test_authorized PASSED                                                                        [ 25%]
test_server.py::Test_Server::test_user_register_handler PASSED                                                             [ 28%]
test_server.py::Test_Server::test_get_user PASSED                                                                          [ 32%]
test_server.py::Test_Server::test_delete_user PASSED                                                                       [ 35%]
test_server.py::Test_Server::test_messages PASSED                                                                          [ 39%]
test_server.py::Test_Server::test_message_attachment ERROR                                                                 [ 42%]
test_server.py::Test_Server::test_uploads
--------------------------------------------------------- live log call --------------------------------------------------------- 
Exception on /message_attachment [POST]
Traceback (most recent call last):
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 2190, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 1486, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask_cors\extension.py", line 176, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\server.py", line 194, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\server.py", line 390, in message_attachment
    static_file_path = cm.add_attachment(op_id, APP.config['UPLOAD_FOLDER'], file, file_token)
  File "C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\chat_manager.py", line 104, in add_attachment
    if not home_fs.exists(file_dir):
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\base.py", line 525, in exists
    self.getinfo(path)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py", line 283, in getinfo
    _path = self.validatepath(path)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py", line 686, in validatepath
    return super(OSFS, self).validatepath(path)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\base.py", line 1581, in validatepath
    raise errors.InvalidCharsInPath(path)
fs.errors.InvalidCharsInPath: path 'C:/Users/GAURAV~1/AppData/Local/Temp/tmphs5n62m_msuiec1f2a1fde/colabTestData/uploads/1' contains invalid characters
FAILED                                                                                                                     [ 46%]
test_server.py::Test_Server::test_create_operation PASSED                                                                  [ 50%]
test_server.py::Test_Server::test_get_operation_by_id ERROR                                                                [ 53%]
test_server.py::Test_Server::test_get_operations PASSED                                                                    [ 57%]
test_server.py::Test_Server::test_get_operations_skip_archived ERROR                                                       [ 60%]
test_server.py::Test_Server::test_get_all_changes PASSED                                                                   [ 64%]
test_server.py::Test_Server::test_get_change_content ERROR                                                                 [ 67%]
test_server.py::Test_Server::test_set_version_name PASSED                                                                  [ 71%]
test_server.py::Test_Server::test_authorized_users ERROR                                                                   [ 75%]
test_server.py::Test_Server::test_delete_operation PASSED                                                                  [ 78%]
test_server.py::Test_Server::test_update_operation
--------------------------------------------------------- live log call --------------------------------------------------------- 
Exception on /update_operation [POST]
Traceback (most recent call last):
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py", line 388, in removedir
    os.rmdir(sys_path)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: b'C:\\Users\\GAURAV~1\\AppData\\Local\\Temp\\tmphs5n62m_msuiec1f2a1fde\\colabTestData\\filedata\\firstflight'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 2190, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 1486, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask_cors\extension.py", line 176, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\server.py", line 194, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\server.py", line 523, in update_operation
    r = str(fm.update_operation(int(op_id), attribute, value, user))
  File "C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\file_manager.py", line 272, in update_operation
    data.movedir(operation.path, value)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\base.py", line 1093, in movedir
    move_dir(self, src_path, self, dst_path, preserve_time=preserve_time)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\move.py", line 145, in move_dir
    _src_fs.removetree(src_path)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\base.py", line 1322, in removetree
    self.removedir(dir_path)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py", line 387, in removedir
    with convert_os_errors("removedir", path, directory=True):
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\error_tools.py", line 89, in __exit__
    reraise(fserror, fserror(self._path, exc=exc_value), traceback)
  File "C:\miniforge\envs\mssdev\lib\site-packages\six.py", line 718, in reraise
    raise value.with_traceback(tb)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py", line 388, in removedir
    os.rmdir(sys_path)
fs.errors.DirectoryExpected: path 'firstflight' should be a directory
FAILED                                                                                                                     [ 82%]
test_server.py::Test_Server::test_get_operation_details PASSED                                                             [ 85%]
test_server.py::Test_Server::test_set_last_used ERROR                                                                      [ 89%]
test_server.py::Test_Server::test_get_users_without_permission PASSED                                                      [ 92%]
test_server.py::Test_Server::test_get_users_with_permission ERROR                                                          [ 96%]
test_server.py::Test_Server::test_import_permissions PASSED                                                                [100%]

============================================================ ERRORS ============================================================= 
_____________________________________ ERROR at setup of Test_Server.test_message_attachment _____________________________________ 

self = TempFS(), path = '/colabTestData/filedata/firstflight'

    def removedir(self, path):
        # type: (Text) -> None
        self.check()
        _path = self.validatepath(path)
        if _path == "/":
            raise errors.RemoveRootError()
        sys_path = self._to_sys_path(path)
        with convert_os_errors("removedir", path, directory=True):
>           os.rmdir(sys_path)
E           PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: b'C:\\Users\\GAURAV~1\\AppData\\Local\\Temp\\tmphs5n62m_msuiec1f2a1fde\\colabTestData\\filedata\\firstflight'

C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:388: PermissionError

During handling of the above exception, another exception occurred:

item = <Function test_message_attachment>

    @pytest.hookimpl(wrapper=True, tryfirst=True)
    def pytest_runtest_setup(item):
        """
        Hook called after before test setup starts, to start capturing exceptions
        as early as possible.
        """
        capture_enabled = _is_exception_capture_enabled(item)
        if capture_enabled:
            item.qt_exception_capture_manager = _QtExceptionCaptureManager()
            item.qt_exception_capture_manager.start()
>       result = yield

C:\miniforge\envs\mssdev\lib\site-packages\pytestqt\plugin.py:180:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
..\..\conftest.py:226: in reset_config
    constants.ROOT_FS.removedir(e)
C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:387: in removedir
    with convert_os_errors("removedir", path, directory=True):
C:\miniforge\envs\mssdev\lib\site-packages\fs\error_tools.py:89: in __exit__
    reraise(fserror, fserror(self._path, exc=exc_value), traceback)
C:\miniforge\envs\mssdev\lib\site-packages\six.py:718: in reraise
    raise value.with_traceback(tb)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = TempFS(), path = '/colabTestData/filedata/firstflight'

    def removedir(self, path):
        # type: (Text) -> None
        self.check()
        _path = self.validatepath(path)
        if _path == "/":
            raise errors.RemoveRootError()
        sys_path = self._to_sys_path(path)
        with convert_os_errors("removedir", path, directory=True):
>           os.rmdir(sys_path)
E           fs.errors.DirectoryExpected: path '/colabTestData/filedata/firstflight' should be a directory

C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:388: DirectoryExpected
____________________________________ ERROR at setup of Test_Server.test_get_operation_by_id _____________________________________ 

self = TempFS(), path = '/colabTestData/filedata/archived_operation'

    def removedir(self, path):
        # type: (Text) -> None
        self.check()
        _path = self.validatepath(path)
        if _path == "/":
            raise errors.RemoveRootError()
        sys_path = self._to_sys_path(path)
        with convert_os_errors("removedir", path, directory=True):
>           os.rmdir(sys_path)
E           PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: b'C:\\Users\\GAURAV~1\\AppData\\Local\\Temp\\tmphs5n62m_msuiec1f2a1fde\\colabTestData\\filedata\\archived_operation'

C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:388: PermissionError

During handling of the above exception, another exception occurred:

item = <Function test_get_operation_by_id>

    @pytest.hookimpl(wrapper=True, tryfirst=True)
    def pytest_runtest_setup(item):
        """
        Hook called after before test setup starts, to start capturing exceptions
        as early as possible.
        """
        capture_enabled = _is_exception_capture_enabled(item)
        if capture_enabled:
            item.qt_exception_capture_manager = _QtExceptionCaptureManager()
            item.qt_exception_capture_manager.start()
>       result = yield

C:\miniforge\envs\mssdev\lib\site-packages\pytestqt\plugin.py:180:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
..\..\conftest.py:226: in reset_config
    constants.ROOT_FS.removedir(e)
C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:387: in removedir
    with convert_os_errors("removedir", path, directory=True):
C:\miniforge\envs\mssdev\lib\site-packages\fs\error_tools.py:89: in __exit__
    reraise(fserror, fserror(self._path, exc=exc_value), traceback)
C:\miniforge\envs\mssdev\lib\site-packages\six.py:718: in reraise
    raise value.with_traceback(tb)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = TempFS(), path = '/colabTestData/filedata/archived_operation'

    def removedir(self, path):
        # type: (Text) -> None
        self.check()
        _path = self.validatepath(path)
        if _path == "/":
            raise errors.RemoveRootError()
        sys_path = self._to_sys_path(path)
        with convert_os_errors("removedir", path, directory=True):
>           os.rmdir(sys_path)
E           fs.errors.DirectoryExpected: path '/colabTestData/filedata/archived_operation' should be a directory

C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:388: DirectoryExpected
________________________________ ERROR at setup of Test_Server.test_get_operations_skip_archived ________________________________ 

self = TempFS(), path = '/colabTestData/filedata/firstflightpath2'

    def removedir(self, path):
        # type: (Text) -> None
        self.check()
        _path = self.validatepath(path)
        if _path == "/":
            raise errors.RemoveRootError()
        sys_path = self._to_sys_path(path)
        with convert_os_errors("removedir", path, directory=True):
>           os.rmdir(sys_path)
E           PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: b'C:\\Users\\GAURAV~1\\AppData\\Local\\Temp\\tmphs5n62m_msuiec1f2a1fde\\colabTestData\\filedata\\firstflightpath2'

C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:388: PermissionError

During handling of the above exception, another exception occurred:

item = <Function test_get_operations_skip_archived>

    @pytest.hookimpl(wrapper=True, tryfirst=True)
    def pytest_runtest_setup(item):
        """
        Hook called after before test setup starts, to start capturing exceptions
        as early as possible.
        """
        capture_enabled = _is_exception_capture_enabled(item)
        if capture_enabled:
            item.qt_exception_capture_manager = _QtExceptionCaptureManager()
            item.qt_exception_capture_manager.start()
>       result = yield

C:\miniforge\envs\mssdev\lib\site-packages\pytestqt\plugin.py:180:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
..\..\conftest.py:226: in reset_config
    constants.ROOT_FS.removedir(e)
C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:387: in removedir
    with convert_os_errors("removedir", path, directory=True):
C:\miniforge\envs\mssdev\lib\site-packages\fs\error_tools.py:89: in __exit__
    reraise(fserror, fserror(self._path, exc=exc_value), traceback)
C:\miniforge\envs\mssdev\lib\site-packages\six.py:718: in reraise
    raise value.with_traceback(tb)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = TempFS(), path = '/colabTestData/filedata/firstflightpath2'

    def removedir(self, path):
        # type: (Text) -> None
        self.check()
        _path = self.validatepath(path)
        if _path == "/":
            raise errors.RemoveRootError()
        sys_path = self._to_sys_path(path)
        with convert_os_errors("removedir", path, directory=True):
>           os.rmdir(sys_path)
E           fs.errors.DirectoryExpected: path '/colabTestData/filedata/firstflightpath2' should be a directory

C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:388: DirectoryExpected
_____________________________________ ERROR at setup of Test_Server.test_get_change_content _____________________________________ 

self = TempFS(), path = '/colabTestData/filedata/firstflight'

    def removedir(self, path):
        # type: (Text) -> None
        self.check()
        _path = self.validatepath(path)
        if _path == "/":
            raise errors.RemoveRootError()
        sys_path = self._to_sys_path(path)
        with convert_os_errors("removedir", path, directory=True):
>           os.rmdir(sys_path)
E           PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: b'C:\\Users\\GAURAV~1\\AppData\\Local\\Temp\\tmphs5n62m_msuiec1f2a1fde\\colabTestData\\filedata\\firstflight'

C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:388: PermissionError

During handling of the above exception, another exception occurred:

item = <Function test_get_change_content>

    @pytest.hookimpl(wrapper=True, tryfirst=True)
    def pytest_runtest_setup(item):
        """
        Hook called after before test setup starts, to start capturing exceptions
        as early as possible.
        """
        capture_enabled = _is_exception_capture_enabled(item)
        if capture_enabled:
            item.qt_exception_capture_manager = _QtExceptionCaptureManager()
            item.qt_exception_capture_manager.start()
>       result = yield

C:\miniforge\envs\mssdev\lib\site-packages\pytestqt\plugin.py:180:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
..\..\conftest.py:226: in reset_config
    constants.ROOT_FS.removedir(e)
C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:387: in removedir
    with convert_os_errors("removedir", path, directory=True):
C:\miniforge\envs\mssdev\lib\site-packages\fs\error_tools.py:89: in __exit__
    reraise(fserror, fserror(self._path, exc=exc_value), traceback)
C:\miniforge\envs\mssdev\lib\site-packages\six.py:718: in reraise
    raise value.with_traceback(tb)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = TempFS(), path = '/colabTestData/filedata/firstflight'

    def removedir(self, path):
        # type: (Text) -> None
        self.check()
        _path = self.validatepath(path)
        if _path == "/":
            raise errors.RemoveRootError()
        sys_path = self._to_sys_path(path)
        with convert_os_errors("removedir", path, directory=True):
>           os.rmdir(sys_path)
E           fs.errors.DirectoryExpected: path '/colabTestData/filedata/firstflight' should be a directory

C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:388: DirectoryExpected
______________________________________ ERROR at setup of Test_Server.test_authorized_users ______________________________________ 

self = TempFS(), path = '/colabTestData/filedata/firstflight'

    def removedir(self, path):
        # type: (Text) -> None
        self.check()
        _path = self.validatepath(path)
        if _path == "/":
            raise errors.RemoveRootError()
        sys_path = self._to_sys_path(path)
        with convert_os_errors("removedir", path, directory=True):
>           os.rmdir(sys_path)
E           PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: b'C:\\Users\\GAURAV~1\\AppData\\Local\\Temp\\tmphs5n62m_msuiec1f2a1fde\\colabTestData\\filedata\\firstflight'

C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:388: PermissionError

During handling of the above exception, another exception occurred:

item = <Function test_authorized_users>

    @pytest.hookimpl(wrapper=True, tryfirst=True)
    def pytest_runtest_setup(item):
        """
        Hook called after before test setup starts, to start capturing exceptions
        as early as possible.
        """
        capture_enabled = _is_exception_capture_enabled(item)
        if capture_enabled:
            item.qt_exception_capture_manager = _QtExceptionCaptureManager()
            item.qt_exception_capture_manager.start()
>       result = yield

C:\miniforge\envs\mssdev\lib\site-packages\pytestqt\plugin.py:180:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
..\..\conftest.py:226: in reset_config
    constants.ROOT_FS.removedir(e)
C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:387: in removedir
    with convert_os_errors("removedir", path, directory=True):
C:\miniforge\envs\mssdev\lib\site-packages\fs\error_tools.py:89: in __exit__
    reraise(fserror, fserror(self._path, exc=exc_value), traceback)
C:\miniforge\envs\mssdev\lib\site-packages\six.py:718: in reraise
    raise value.with_traceback(tb)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = TempFS(), path = '/colabTestData/filedata/firstflight'

    def removedir(self, path):
        # type: (Text) -> None
        self.check()
        _path = self.validatepath(path)
        if _path == "/":
            raise errors.RemoveRootError()
        sys_path = self._to_sys_path(path)
        with convert_os_errors("removedir", path, directory=True):
>           os.rmdir(sys_path)
E           fs.errors.DirectoryExpected: path '/colabTestData/filedata/firstflight' should be a directory

C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:388: DirectoryExpected
_______________________________________ ERROR at setup of Test_Server.test_set_last_used ________________________________________ 

self = TempFS(), path = '/colabTestData/filedata/flp1'

    def removedir(self, path):
        # type: (Text) -> None
        self.check()
        _path = self.validatepath(path)
        if _path == "/":
            raise errors.RemoveRootError()
        sys_path = self._to_sys_path(path)
        with convert_os_errors("removedir", path, directory=True):
>           os.rmdir(sys_path)
E           PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: b'C:\\Users\\GAURAV~1\\AppData\\Local\\Temp\\tmphs5n62m_msuiec1f2a1fde\\colabTestData\\filedata\\flp1'

C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:388: PermissionError

During handling of the above exception, another exception occurred:

item = <Function test_set_last_used>

    @pytest.hookimpl(wrapper=True, tryfirst=True)
    def pytest_runtest_setup(item):
        """
        Hook called after before test setup starts, to start capturing exceptions
        as early as possible.
        """
        capture_enabled = _is_exception_capture_enabled(item)
        if capture_enabled:
            item.qt_exception_capture_manager = _QtExceptionCaptureManager()
            item.qt_exception_capture_manager.start()
>       result = yield

C:\miniforge\envs\mssdev\lib\site-packages\pytestqt\plugin.py:180:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
..\..\conftest.py:226: in reset_config
    constants.ROOT_FS.removedir(e)
C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:387: in removedir
    with convert_os_errors("removedir", path, directory=True):
C:\miniforge\envs\mssdev\lib\site-packages\fs\error_tools.py:89: in __exit__
    reraise(fserror, fserror(self._path, exc=exc_value), traceback)
C:\miniforge\envs\mssdev\lib\site-packages\six.py:718: in reraise
    raise value.with_traceback(tb)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = TempFS(), path = '/colabTestData/filedata/flp1'

    def removedir(self, path):
        # type: (Text) -> None
        self.check()
        _path = self.validatepath(path)
        if _path == "/":
            raise errors.RemoveRootError()
        sys_path = self._to_sys_path(path)
        with convert_os_errors("removedir", path, directory=True):
>           os.rmdir(sys_path)
E           fs.errors.DirectoryExpected: path '/colabTestData/filedata/flp1' should be a directory

C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:388: DirectoryExpected
_________________________________ ERROR at setup of Test_Server.test_get_users_with_permission __________________________________ 

self = TempFS(), path = '/colabTestData/filedata/firstflight'

    def removedir(self, path):
        # type: (Text) -> None
        self.check()
        _path = self.validatepath(path)
        if _path == "/":
            raise errors.RemoveRootError()
        sys_path = self._to_sys_path(path)
        with convert_os_errors("removedir", path, directory=True):
>           os.rmdir(sys_path)
E           PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: b'C:\\Users\\GAURAV~1\\AppData\\Local\\Temp\\tmphs5n62m_msuiec1f2a1fde\\colabTestData\\filedata\\firstflight'

C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:388: PermissionError

During handling of the above exception, another exception occurred:

item = <Function test_get_users_with_permission>

    @pytest.hookimpl(wrapper=True, tryfirst=True)
    def pytest_runtest_setup(item):
        """
        Hook called after before test setup starts, to start capturing exceptions
        as early as possible.
        """
        capture_enabled = _is_exception_capture_enabled(item)
        if capture_enabled:
            item.qt_exception_capture_manager = _QtExceptionCaptureManager()
            item.qt_exception_capture_manager.start()
>       result = yield

C:\miniforge\envs\mssdev\lib\site-packages\pytestqt\plugin.py:180:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
..\..\conftest.py:226: in reset_config
    constants.ROOT_FS.removedir(e)
C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:387: in removedir
    with convert_os_errors("removedir", path, directory=True):
C:\miniforge\envs\mssdev\lib\site-packages\fs\error_tools.py:89: in __exit__
    reraise(fserror, fserror(self._path, exc=exc_value), traceback)
C:\miniforge\envs\mssdev\lib\site-packages\six.py:718: in reraise
    raise value.with_traceback(tb)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = TempFS(), path = '/colabTestData/filedata/firstflight'

    def removedir(self, path):
        # type: (Text) -> None
        self.check()
        _path = self.validatepath(path)
        if _path == "/":
            raise errors.RemoveRootError()
        sys_path = self._to_sys_path(path)
        with convert_os_errors("removedir", path, directory=True):
>           os.rmdir(sys_path)
E           fs.errors.DirectoryExpected: path '/colabTestData/filedata/firstflight' should be a directory

C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py:388: DirectoryExpected
=========================================================== FAILURES ============================================================ 
___________________________________________________ Test_Server.test_uploads ____________________________________________________ 

self = <tests._test_mscolab.test_server.Test_Server object at 0x00000225DFD8CF10>

    def test_uploads(self):
        assert add_user(self.userdata[0], self.userdata[1], self.userdata[2])
        with self.app.test_client() as test_client:
            operation, token = self._create_operation(test_client, self.userdata)
            text = b"this is a test"
            attachment = io.BytesIO(text)
            response = test_client.post('/message_attachment', data={"token": token,
                                                                     "op_id": operation.id,
                                                                     "file": (attachment, 'test.txt'),
                                                                     "message_type": "3"})
>           assert response.status_code == 200
E           assert 500 == 200
E            +  where 500 = <WrapperTestResponse streamed [500 INTERNAL SERVER ERROR]>.status_code

test_server.py:178: AssertionError
----------------------------------------------------- Captured stdout setup ----------------------------------------------------- 

 configure testdata
Database has been reset successfully!
----------------------------------------------------- Captured stderr setup ----------------------------------------------------- 
DEBUG:root:No user settings found, using default settings
------------------------------------------------------ Captured log setup ------------------------------------------------------- 
DEBUG    root:config.py:393 No user settings found, using default settings
----------------------------------------------------- Captured stderr call ------------------------------------------------------ 
INFO:root:Userdata: UV10@uv10 UV10 uv10
DEBUG:git.cmd:Popen(['git', 'init'], cwd=C:\Users\GAURAV~1\AppData\Local\Temp\tmphs5n62m_msuiec1f2a1fde\colabTestData\filedata\firstflight, stdin=None, shell=False, universal_newlines=False)
DEBUG:git.cmd:Popen(['git', 'cat-file', '--batch-check'], cwd=C:\Users\GAURAV~1\AppData\Local\Temp\tmphs5n62m_msuiec1f2a1fde\colabTestData\filedata\firstflight, stdin=<valid stream>, shell=False, universal_newlines=False)
DEBUG:git.cmd:Popen(['git', 'cat-file', '--batch'], cwd=C:\Users\GAURAV~1\AppData\Local\Temp\tmphs5n62m_msuiec1f2a1fde\colabTestData\filedata\firstflight, stdin=<valid stream>, shell=False, universal_newlines=False)
emitting event "operation-list-update" to all [/]
INFO:socketio.server:emitting event "operation-list-update" to all [/]
ERROR:mslib.mscolab.app:Exception on /message_attachment [POST]
Traceback (most recent call last):
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 2190, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 1486, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask_cors\extension.py", line 176, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\server.py", line 194, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\server.py", line 390, in message_attachment
    static_file_path = cm.add_attachment(op_id, APP.config['UPLOAD_FOLDER'], file, file_token)
  File "C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\chat_manager.py", line 104, in add_attachment
    if not home_fs.exists(file_dir):
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\base.py", line 525, in exists
    self.getinfo(path)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py", line 283, in getinfo
    _path = self.validatepath(path)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py", line 686, in validatepath
    return super(OSFS, self).validatepath(path)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\base.py", line 1581, in validatepath
    raise errors.InvalidCharsInPath(path)
fs.errors.InvalidCharsInPath: path 'C:/Users/GAURAV~1/AppData/Local/Temp/tmphs5n62m_msuiec1f2a1fde/colabTestData/uploads/1' contains invalid characters
------------------------------------------------------- Captured log call ------------------------------------------------------- 
INFO     root:seed.py:127 Userdata: UV10@uv10 UV10 uv10
DEBUG    git.cmd:cmd.py:1057 Popen(['git', 'init'], cwd=C:\Users\GAURAV~1\AppData\Local\Temp\tmphs5n62m_msuiec1f2a1fde\colabTestData\filedata\firstflight, stdin=None, shell=False, universal_newlines=False)
DEBUG    git.cmd:cmd.py:1057 Popen(['git', 'cat-file', '--batch-check'], cwd=C:\Users\GAURAV~1\AppData\Local\Temp\tmphs5n62m_msuiec1f2a1fde\colabTestData\filedata\firstflight, stdin=<valid stream>, shell=False, universal_newlines=False)
DEBUG    git.cmd:cmd.py:1057 Popen(['git', 'cat-file', '--batch'], cwd=C:\Users\GAURAV~1\AppData\Local\Temp\tmphs5n62m_msuiec1f2a1fde\colabTestData\filedata\firstflight, stdin=<valid stream>, shell=False, universal_newlines=False)
INFO     socketio.server:server.py:161 emitting event "operation-list-update" to all [/]
ERROR    mslib.mscolab.app:app.py:1414 Exception on /message_attachment [POST]
Traceback (most recent call last):
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 2190, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 1486, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask_cors\extension.py", line 176, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\server.py", line 194, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\server.py", line 390, in message_attachment
    static_file_path = cm.add_attachment(op_id, APP.config['UPLOAD_FOLDER'], file, file_token)
  File "C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\chat_manager.py", line 104, in add_attachment
    if not home_fs.exists(file_dir):
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\base.py", line 525, in exists
    self.getinfo(path)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py", line 283, in getinfo
    _path = self.validatepath(path)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py", line 686, in validatepath
    return super(OSFS, self).validatepath(path)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\base.py", line 1581, in validatepath
    raise errors.InvalidCharsInPath(path)
fs.errors.InvalidCharsInPath: path 'C:/Users/GAURAV~1/AppData/Local/Temp/tmphs5n62m_msuiec1f2a1fde/colabTestData/uploads/1' contains invalid characters
_______________________________________________ Test_Server.test_update_operation _______________________________________________ 

self = <tests._test_mscolab.test_server.Test_Server object at 0x00000225DFA4E800>

    def test_update_operation(self):
        assert add_user(self.userdata[0], self.userdata[1], self.userdata[2])
        with self.app.test_client() as test_client:
            operation, token = self._create_operation(test_client, self.userdata)
            response = test_client.post('/update_operation', data={"token": token,
                                                                   "op_id": operation.id,
                                                                   "attribute": "path",
                                                                   "value": "newflight"})
>           assert response.status_code == 200
E           assert 500 == 200
E            +  where 500 = <WrapperTestResponse streamed [500 INTERNAL SERVER ERROR]>.status_code

test_server.py:310: AssertionError
----------------------------------------------------- Captured stdout setup ----------------------------------------------------- 

 configure testdata
Database has been reset successfully!
----------------------------------------------------- Captured stderr setup ----------------------------------------------------- 
DEBUG:root:No user settings found, using default settings
------------------------------------------------------ Captured log setup ------------------------------------------------------- 
DEBUG    root:config.py:393 No user settings found, using default settings
----------------------------------------------------- Captured stderr call ------------------------------------------------------ 
INFO:root:Userdata: UV10@uv10 UV10 uv10
DEBUG:git.cmd:Popen(['git', 'init'], cwd=C:\Users\GAURAV~1\AppData\Local\Temp\tmphs5n62m_msuiec1f2a1fde\colabTestData\filedata\firstflight, stdin=None, shell=False, universal_newlines=False)
DEBUG:git.cmd:Popen(['git', 'cat-file', '--batch-check'], cwd=C:\Users\GAURAV~1\AppData\Local\Temp\tmphs5n62m_msuiec1f2a1fde\colabTestData\filedata\firstflight, stdin=<valid stream>, shell=False, universal_newlines=False)
DEBUG:git.cmd:Popen(['git', 'cat-file', '--batch'], cwd=C:\Users\GAURAV~1\AppData\Local\Temp\tmphs5n62m_msuiec1f2a1fde\colabTestData\filedata\firstflight, stdin=<valid stream>, shell=False, universal_newlines=False)
emitting event "operation-list-update" to all [/]
INFO:socketio.server:emitting event "operation-list-update" to all [/]
ERROR:mslib.mscolab.app:Exception on /update_operation [POST]
Traceback (most recent call last):
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py", line 388, in removedir
    os.rmdir(sys_path)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: b'C:\\Users\\GAURAV~1\\AppData\\Local\\Temp\\tmphs5n62m_msuiec1f2a1fde\\colabTestData\\filedata\\firstflight'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 2190, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 1486, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask_cors\extension.py", line 176, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\server.py", line 194, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\server.py", line 523, in update_operation
    r = str(fm.update_operation(int(op_id), attribute, value, user))
  File "C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\file_manager.py", line 272, in update_operation
    data.movedir(operation.path, value)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\base.py", line 1093, in movedir
    move_dir(self, src_path, self, dst_path, preserve_time=preserve_time)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\move.py", line 145, in move_dir
    _src_fs.removetree(src_path)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\base.py", line 1322, in removetree
    self.removedir(dir_path)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py", line 387, in removedir
    with convert_os_errors("removedir", path, directory=True):
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\error_tools.py", line 89, in __exit__
    reraise(fserror, fserror(self._path, exc=exc_value), traceback)
  File "C:\miniforge\envs\mssdev\lib\site-packages\six.py", line 718, in reraise
    raise value.with_traceback(tb)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py", line 388, in removedir
    os.rmdir(sys_path)
fs.errors.DirectoryExpected: path 'firstflight' should be a directory
------------------------------------------------------- Captured log call ------------------------------------------------------- 
INFO     root:seed.py:127 Userdata: UV10@uv10 UV10 uv10
DEBUG    git.cmd:cmd.py:1057 Popen(['git', 'init'], cwd=C:\Users\GAURAV~1\AppData\Local\Temp\tmphs5n62m_msuiec1f2a1fde\colabTestData\filedata\firstflight, stdin=None, shell=False, universal_newlines=False)
DEBUG    git.cmd:cmd.py:1057 Popen(['git', 'cat-file', '--batch-check'], cwd=C:\Users\GAURAV~1\AppData\Local\Temp\tmphs5n62m_msuiec1f2a1fde\colabTestData\filedata\firstflight, stdin=<valid stream>, shell=False, universal_newlines=False)
DEBUG    git.cmd:cmd.py:1057 Popen(['git', 'cat-file', '--batch'], cwd=C:\Users\GAURAV~1\AppData\Local\Temp\tmphs5n62m_msuiec1f2a1fde\colabTestData\filedata\firstflight, stdin=<valid stream>, shell=False, universal_newlines=False)
INFO     socketio.server:server.py:161 emitting event "operation-list-update" to all [/]
ERROR    mslib.mscolab.app:app.py:1414 Exception on /update_operation [POST]
Traceback (most recent call last):
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py", line 388, in removedir
    os.rmdir(sys_path)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: b'C:\\Users\\GAURAV~1\\AppData\\Local\\Temp\\tmphs5n62m_msuiec1f2a1fde\\colabTestData\\filedata\\firstflight'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 2190, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 1486, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask_cors\extension.py", line 176, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\miniforge\envs\mssdev\lib\site-packages\flask\app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\server.py", line 194, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\server.py", line 523, in update_operation
    r = str(fm.update_operation(int(op_id), attribute, value, user))
  File "C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\file_manager.py", line 272, in update_operation
    data.movedir(operation.path, value)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\base.py", line 1093, in movedir
    move_dir(self, src_path, self, dst_path, preserve_time=preserve_time)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\move.py", line 145, in move_dir
    _src_fs.removetree(src_path)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\base.py", line 1322, in removetree
    self.removedir(dir_path)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py", line 387, in removedir
    with convert_os_errors("removedir", path, directory=True):
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\error_tools.py", line 89, in __exit__
    reraise(fserror, fserror(self._path, exc=exc_value), traceback)
  File "C:\miniforge\envs\mssdev\lib\site-packages\six.py", line 718, in reraise
    raise value.with_traceback(tb)
  File "C:\miniforge\envs\mssdev\lib\site-packages\fs\osfs.py", line 388, in removedir
    os.rmdir(sys_path)
fs.errors.DirectoryExpected: path 'firstflight' should be a directory
======================================================= warnings summary ======================================================== 
..\..\..\..\..\..\..\miniforge\envs\mssdev\lib\site-packages\xarray\testing\assertions.py:8
  C:\miniforge\envs\mssdev\lib\site-packages\xarray\testing\assertions.py:8: DeprecationWarning:
  Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0),
  (to allow more performant data types, such as the Arrow string type, and better interoperability with other libraries)
  but was not found to be installed on your system.
  If this would cause problems for you,
  please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466

    import pandas as pd

..\..\..\..\..\..\..\miniforge\envs\mssdev\lib\site-packages\mpl_toolkits\basemap\__init__.py:33
  C:\miniforge\envs\mssdev\lib\site-packages\mpl_toolkits\basemap\__init__.py:33: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    _matplotlib_version = LooseVersion(_matplotlib_version)

..\..\..\..\..\..\..\miniforge\envs\mssdev\lib\site-packages\mpl_toolkits\basemap\__init__.py:34
  C:\miniforge\envs\mssdev\lib\site-packages\mpl_toolkits\basemap\__init__.py:34: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    _mpl_required_version = LooseVersion('0.98')

..\..\..\..\..\..\..\miniforge\envs\mssdev\lib\site-packages\flask_socketio\__init__.py:19
..\..\..\..\..\..\..\miniforge\envs\mssdev\lib\site-packages\flask_socketio\__init__.py:19
  C:\miniforge\envs\mssdev\lib\site-packages\flask_socketio\__init__.py:19: DeprecationWarning: '_request_ctx_stack' is deprecated and will be removed in Flask 2.4.
    from flask import _request_ctx_stack, has_request_context, json as flask_json

..\..\..\..\..\..\..\miniforge\envs\mssdev\lib\site-packages\fslib\utils.py:112
  C:\miniforge\envs\mssdev\lib\site-packages\fslib\utils.py:112: DeprecationWarning: sipPyTypeDict() is deprecated, the extension module should use sipPyTypeDictRef() instead
    class WidgetImage(QWidget):

..\..\..\..\..\..\..\miniforge\envs\mssdev\lib\site-packages\fslib\fs_filepicker.py:55
..\..\..\..\..\..\..\miniforge\envs\mssdev\lib\site-packages\fslib\fs_filepicker.py:55
..\..\..\..\..\..\..\miniforge\envs\mssdev\lib\site-packages\fslib\fs_filepicker.py:55
  C:\miniforge\envs\mssdev\lib\site-packages\fslib\fs_filepicker.py:55: DeprecationWarning: sipPyTypeDict() is deprecated, the extension module should use sipPyTypeDictRef() instead
    class FilePicker(QtWidgets.QDialog, ui_filepicker.Ui_Dialog):

..\..\mslib\utils\qt.py:246
  C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\utils\qt.py:246: DeprecationWarning: sipPyTypeDict() is deprecated, the extension module should use sipPyTypeDictRef() instead
    class Delegate(QtWidgets.QStyledItemDelegate):

..\..\mslib\utils\qt.py:240
  C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\utils\qt.py:240: DeprecationWarning: sipPyTypeDict() is deprecated, the extension module should use sipPyTypeDictRef() instead
    class CheckableComboBox(QtWidgets.QComboBox):

..\..\mslib\utils\qt.py:367
  C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\utils\qt.py:367: DeprecationWarning: sipPyTypeDict() is deprecated, the extension module should use sipPyTypeDictRef() instead
    class Worker(QtCore.QThread):

..\..\mslib\utils\qt.py:434
  C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\utils\qt.py:434: DeprecationWarning: sipPyTypeDict() is deprecated, the extension module should use sipPyTypeDictRef() instead
    class Updater(QtCore.QObject):

tests/_test_mscolab/test_server.py::Test_Server::test_messages
  C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\chat_manager.py:72: SAWarning: TypeDecorator AwareDateTime() will not produce a cache key because the ``cache_ok`` attribute is not set to True.  This can have significant performance implications including some performance degradations in comparison to prior SQLAlchemy versions.  Set this attribute to True if this type object's state is safe to use in a cache key, or False to disable this warning. (Background on this warning at: https://sqlalche.me/e/20/cprf)
    .all()

tests/_test_mscolab/test_server.py::Test_Server::test_get_all_changes
tests/_test_mscolab/test_server.py::Test_Server::test_set_version_name
  C:\Users\Gaurav Sharma\Desktop\OpenSource\mss\mslib\mscolab\file_manager.py:395: SAWarning: TypeDecorator AwareDateTime() will not produce a cache key because the ``cache_ok`` attribute is not set to True.  This can have significant performance implications including some performance degradations in comparison to prior SQLAlchemy versions.  Set this attribute to True if this type object's state is safe to use in a cache key, or False to disable this warning. (Background on this warning at: https://sqlalche.me/e/2

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
==================================================== short test summary info ==================================================== 
FAILED test_server.py::Test_Server::test_uploads - assert 500 == 200
FAILED test_server.py::Test_Server::test_update_operation - assert 500 == 200
ERROR test_server.py::Test_Server::test_message_attachment - fs.errors.DirectoryExpected: path '/colabTestData/filedata/firstflight' should be a directory
ERROR test_server.py::Test_Server::test_get_operation_by_id - fs.errors.DirectoryExpected: path '/colabTestData/filedata/archived_operation' should be a directory
ERROR test_server.py::Test_Server::test_get_operations_skip_archived - fs.errors.DirectoryExpected: path '/colabTestData/filedata/firstflightpath2' should be a directory
ERROR test_server.py::Test_Server::test_get_change_content - fs.errors.DirectoryExpected: path '/colabTestData/filedata/firstflight' should be a directory
ERROR test_server.py::Test_Server::test_authorized_users - fs.errors.DirectoryExpected: path '/colabTestData/filedata/firstflight' should be a directory
ERROR test_server.py::Test_Server::test_set_last_used - fs.errors.DirectoryExpected: path '/colabTestData/filedata/flp1' should be a directory
ERROR test_server.py::Test_Server::test_get_users_with_permission - fs.errors.DirectoryExpected: path '/colabTestData/filedata/firstflight' should be a directory
===================================== 2 failed, 19 passed, 16 warnings, 7 errors in 55.81s ======================================

I am particuarly interested in resolving “test_uploads”.
Any help is highly appreciated.
Thanks in advance