# Path: alchemist/test.py
# def settings(app, **kwargs):
#     def setup_class(cls):
#     def teardown(self):
#     def request(self, path='', url=None, data=None, format='json',
#                 *args, **kwargs):
#     def head(self, *args, **kwargs):
#     def options(self, *args, **kwargs):
#     def get(self, *args, **kwargs):
#     def post(self, *args, **kwargs):
#     def put(self, *args, **kwargs):
#     def patch(self, *args, **kwargs):
#     def delete(self, *args, **kwargs):
# class TestBase:


from alchemist import test
from flask import Flask
from . import utils
    from unittest import mock
        from alchemist import management
        from alchemist.commands import Shell
import alchemist
import sys
import io
import py
    import mock
                manager.run()

            except SystemExit:
                return target

            finally:
                sys.argv = _argv


class TestServer(CommandTest):

    patch = 'flask.ext.script.Server.handle'

    def test_default(self):
        target = self._run(['run'])
        target.assert_called_with(
            self.app, host='::1', port=8000, use_debugger=True,
            threaded=False, processes=1,
            passthrough_errors=False, use_reloader=True)

    def test_override(self):
        config = {
            'SERVER_HOST': 'app.me',
            'SERVER_PORT': 5000,
            'SERVER_RELOAD': False,
            'SERVER_PROCESSES': 10,
            'SERVER_THREADED': True,
            'SERVER_DEBUG': False
        }


# Path: alchemist/test.py
# def settings(app, **kwargs):
#     def setup_class(cls):
#     def teardown(self):
#     def request(self, path='', url=None, data=None, format='json',
#                 *args, **kwargs):
#     def head(self, *args, **kwargs):
#     def options(self, *args, **kwargs):
#     def get(self, *args, **kwargs):
#     def post(self, *args, **kwargs):
#     def put(self, *args, **kwargs):
#     def patch(self, *args, **kwargs):
#     def delete(self, *args, **kwargs):
# class TestBase:


# Path: alchemist/tests/test_commands.py
from alchemist import test
from flask import Flask
from . import utils
    from unittest import mock
        from alchemist import management
        from alchemist.commands import Shell
import alchemist
import sys
import io
import py
    import mock

                manager.run()

            except SystemExit:
                return target

            finally:
                sys.argv = _argv


class TestServer(CommandTest):

    patch = 'flask.ext.script.Server.handle'

    def test_default(self):
        target = self._run(['run'])
        target.assert_called_with(
            self.app, host='::1', port=8000, use_debugger=True,
            threaded=False, processes=1,
            passthrough_errors=False, use_reloader=True)

    def test_override(self):
        config = {
            'SERVER_HOST': 'app.me',
            'SERVER_PORT': 5000,
            'SERVER_RELOAD': False,
            'SERVER_PROCESSES': 10,
            'SERVER_THREADED': True,
            'SERVER_DEBUG': False
        }


        with test.settings(self.app, **config):