# Path: yawn/management/commands/webserver.py
# class WSGIApplication(BaseApplication):
# class Command(BaseCommand):
#     def __init__(self, options):
#     def load_config(self):
#     def _set_cfg(self, args):
#     def load(self):
#     def add_arguments(self, parser):
#     def handle(self, *args, **options):


import sys
from unittest import mock
from django.core import management
from yawn.management.commands import webserver





@mock.patch.object(webserver.WSGIApplication, 'run')
def test_webserver(mock_run):
    # pytest with coverage arguments causes gunicorn's argparse to fail
    with mock.patch.object(sys, 'argv', ['yawn', 'worker', '-b', '0.0.0.0:8000']):

# Path: yawn/management/commands/webserver.py
# class WSGIApplication(BaseApplication):
# class Command(BaseCommand):
#     def __init__(self, options):
#     def load_config(self):
#     def _set_cfg(self, args):
#     def load(self):
#     def add_arguments(self, parser):
#     def handle(self, *args, **options):


# Path: yawn/management/tests/test_webserver.py
import sys
from unittest import mock
from django.core import management
from yawn.management.commands import webserver






@mock.patch.object(webserver.WSGIApplication, 'run')
def test_webserver(mock_run):
    # pytest with coverage arguments causes gunicorn's argparse to fail
    with mock.patch.object(sys, 'argv', ['yawn', 'worker', '-b', '0.0.0.0:8000']):

        management.call_command('webserver')