# Path: mfr/core/remote_logging.py
# async def log_analytics(request, metrics, is_error=False):
# async def _send_to_keen(payload, collection, project_id, write_key, action, domain='private'):
# def _scrub_headers_for_keen(payload, MAX_ITERATIONS=10):
# def _serialize_request(request):
# def _build_public_file_payload(action, request, file_metadata):
# def _munge_file_metadata(metadata):


import pytest
from mfr.core import remote_logging



class TestScrubPayloadForKeen:

    def test_flat_dict(self):
        payload = {
            'key': 'value',
            'key2': 'value2'
        }


# Path: mfr/core/remote_logging.py
# async def log_analytics(request, metrics, is_error=False):
# async def _send_to_keen(payload, collection, project_id, write_key, action, domain='private'):
# def _scrub_headers_for_keen(payload, MAX_ITERATIONS=10):
# def _serialize_request(request):
# def _build_public_file_payload(action, request, file_metadata):
# def _munge_file_metadata(metadata):


# Path: tests/core/test_remote_logging.py
import pytest
from mfr.core import remote_logging




class TestScrubPayloadForKeen:

    def test_flat_dict(self):
        payload = {
            'key': 'value',
            'key2': 'value2'
        }


        result = remote_logging._scrub_headers_for_keen(payload)