# Path: ecs_scheduler/webapi/spec.py
# class Spec(flask_restful.Resource):
#     """Swagger spec REST resource."""
# 
#     def get(self):
#         """
#         API spec
#         Return the swagger api specification.
#         ---
#         tags:
#             - docs
#         produces:
#             - application/json
#         responses:
#             200:
#                 description: API spec documentation
#         """
#         swag = flask_swagger.swagger(flask.current_app)
#         swag['info']['version'] = env.get_version()
#         swag['info']['title'] = 'ECS Scheduler Web Api (webapi)'
#         swag['basePath'] = '/'
#         return swag


import unittest
from unittest.mock import patch
from ecs_scheduler.webapi.spec import Spec



class SpecTests(unittest.TestCase):
    @patch('flask_swagger.swagger')
    @patch('ecs_scheduler.webapi.spec.flask')
    def test_get(self, fake_flask, fake_swagger):

# Path: ecs_scheduler/webapi/spec.py
# class Spec(flask_restful.Resource):
#     """Swagger spec REST resource."""
# 
#     def get(self):
#         """
#         API spec
#         Return the swagger api specification.
#         ---
#         tags:
#             - docs
#         produces:
#             - application/json
#         responses:
#             200:
#                 description: API spec documentation
#         """
#         swag = flask_swagger.swagger(flask.current_app)
#         swag['info']['version'] = env.get_version()
#         swag['info']['title'] = 'ECS Scheduler Web Api (webapi)'
#         swag['basePath'] = '/'
#         return swag


# Path: test/webapi/test_spec.py
import unittest
from unittest.mock import patch
from ecs_scheduler.webapi.spec import Spec




class SpecTests(unittest.TestCase):
    @patch('flask_swagger.swagger')
    @patch('ecs_scheduler.webapi.spec.flask')
    def test_get(self, fake_flask, fake_swagger):

        spec = Spec()