def create_app(self):
        # siiiick, sick and stupid
        # We need to redefine some settings in weird way before import Flask
        # app because it got initialized on import. Yes, this is a little bit
        # stupid
        try:
            import local_settings as settings
        except __HOLE__:
            import settings

        settings.MONGODB_SETTINGS["DB"] = "unshred_test"
        settings.ENABLE_FIXTURES_ENDPOINTS = True
        import app as unshred
        return unshred.app
dataset/ETHPy150Open dchaplinsky/unshred-tag/tests/__init__.py/BasicTestCase.create_app