# -*- coding: utf-8 -*-
# ###
# Copyright (c) 2013, Rice University
# This software is subject to the provisions of the GNU Affero General
# Public License version 3 (AGPLv3).
# See LICENCE.txt for details.
# ###
import os
import tempfile

from beaker.cache import CacheManager
from beaker.util import parse_cache_config_options
from cnxarchive.utils import join_ident_hash
from openstax_accounts.interfaces import IOpenstaxAccountsAuthenticationPolicy
from pyramid.config import Configurator
from pyramid import security
from pyramid.authorization import ACLAuthorizationPolicy
from pyramid.httpexceptions import default_exceptionresponse_view
from pyramid.session import SignedCookieSessionFactory
from pyramid_multiauth import MultiAuthenticationPolicy


__version__ = '0.1'
__name__ = 'cnxpublishing'


def find_migrations_directory():  # pragma: no cover
    """Finds and returns the location of the database migrations directory.
    This function is used from a setuptools entry-point for db-migrator.
    """
    here = os.path.abspath(os.path.dirname(__file__))
    return os.path.join(here, 'sql/migrations')


def make_wsgi_app(global_config, **settings):
    """Application factory"""
    from .config import configure
    return configure(settings).make_wsgi_app()

@@ -220,541 +220,8 @@
  os%0A
-import tempfile%0A%0Afrom beaker.cache import CacheManager%0Afrom beaker.util import parse_cache_config_options%0Afrom cnxarchive.utils import join_ident_hash%0Afrom openstax_accounts.interfaces import IOpenstaxAccountsAuthenticationPolicy%0Afrom pyramid.config import Configurator%0Afrom pyramid import security%0Afrom pyramid.authorization import ACLAuthorizationPolicy%0Afrom pyramid.httpexceptions import default_exceptionresponse_view%0Afrom pyramid.session import SignedCookieSessionFactory%0Afrom pyramid_multiauth import MultiAuthenticationPolicy%0A
 %0A%0A__
@@ -581,16 +581,16 @@
 ons')%0A%0A%0A
-
 def make
@@ -626,16 +626,36 @@
 ttings):
+  # pragma: no cover
 %0A    %22%22%22

Remove unused imports