# Path: mtr/sync/settings.py
# SETTINGS = getattr_with_prefix('SYNC', 'SETTINGS', {
#     'path': get_buffer_file_path,
#     'default_processor': 'XlsxProcessor',
#     'actions': ['mtr.sync.lib.actions'],
#     'converters': ['mtr.sync.lib.converters'],
#     'processors': [
#         'mtr.sync.lib.processors.xlsx',
#         'mtr.sync.lib.processors.xls',
#         'mtr.sync.lib.processors.ods',
#         'mtr.sync.lib.processors.csv',
#     ],
#     'broker': 'rq',
#     'include': {
#         'api': False,
#         'admin': True,
#     }
# })


from django.test import TestCase
from mtr.sync.settings import SETTINGS



class MockInstance(object):
    action = 1


class SettingsTest(TestCase):

    def test_default_filepath_name(self):
        new_settings = {
            'MEDIA_ROOT': '/some/path/'
        }
        instance = MockInstance()

        with self.settings(**new_settings):
            self.assertEqual(

# Path: mtr/sync/settings.py
# SETTINGS = getattr_with_prefix('SYNC', 'SETTINGS', {
#     'path': get_buffer_file_path,
#     'default_processor': 'XlsxProcessor',
#     'actions': ['mtr.sync.lib.actions'],
#     'converters': ['mtr.sync.lib.converters'],
#     'processors': [
#         'mtr.sync.lib.processors.xlsx',
#         'mtr.sync.lib.processors.xls',
#         'mtr.sync.lib.processors.ods',
#         'mtr.sync.lib.processors.csv',
#     ],
#     'broker': 'rq',
#     'include': {
#         'api': False,
#         'admin': True,
#     }
# })


# Path: tests/app/tests/settings.py
from django.test import TestCase
from mtr.sync.settings import SETTINGS




class MockInstance(object):
    action = 1


class SettingsTest(TestCase):

    def test_default_filepath_name(self):
        new_settings = {
            'MEDIA_ROOT': '/some/path/'
        }
        instance = MockInstance()

        with self.settings(**new_settings):
            self.assertEqual(

                SETTINGS['path'](instance, 'filename.xls'),