async def test_list_syncs_without_source_connection(self, mock_db, mock_user, mock_sync):
        """Test listing syncs without source connection."""
        # Arrange
        with patch.object(sync_service, "list_syncs", new_callable=AsyncMock) as mock_list_syncs:
            mock_list_syncs.return_value = [mock_sync]

            # Act
            result = await sync.list_syncs(
                db=mock_db, skip=0, limit=100, with_source_connection=False, user=mock_user
            )

            # Assert
            mock_list_syncs.assert_called_once_with(
                db=mock_db, current_user=mock_user, skip=0, limit=100, with_source_connection=False
            )
            assert result == [mock_sync]
Test listing syncs without source connection.
backend/tests/unit/api/test_sync.py