code: unified coverage notes to # pragma: no cover
This commit is contained in:
parent
34ec070623
commit
4719d0ff87
12 changed files with 18 additions and 19 deletions
|
|
@ -43,7 +43,7 @@ then you can retrieve the url by simply calling the URL function:
|
|||
The redirection must be first implemented in our servers before
|
||||
you can see it working.
|
||||
"""
|
||||
# flake8: noqa
|
||||
# pragma: no cover
|
||||
from __future__ import unicode_literals
|
||||
|
||||
link_config = [
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ def trigger(event, registry=None):
|
|||
integrations_event_handler(event)
|
||||
|
||||
|
||||
from rhodecode.events.user import ( # noqa
|
||||
from rhodecode.events.user import ( # pragma: no cover
|
||||
UserPreCreate,
|
||||
UserPostCreate,
|
||||
UserPreUpdate,
|
||||
|
|
@ -52,7 +52,7 @@ from rhodecode.events.user import ( # noqa
|
|||
UserPermissionsChange,
|
||||
)
|
||||
|
||||
from rhodecode.events.repo import ( # noqa
|
||||
from rhodecode.events.repo import ( # pragma: no cover
|
||||
RepoEvent,
|
||||
RepoPreCreateEvent, RepoCreateEvent,
|
||||
RepoPreDeleteEvent, RepoDeleteEvent,
|
||||
|
|
@ -60,14 +60,14 @@ from rhodecode.events.repo import ( # noqa
|
|||
RepoPrePullEvent, RepoPullEvent,
|
||||
)
|
||||
|
||||
from rhodecode.events.repo_group import ( # noqa
|
||||
from rhodecode.events.repo_group import ( # pragma: no cover
|
||||
RepoGroupEvent,
|
||||
RepoGroupCreateEvent,
|
||||
RepoGroupUpdateEvent,
|
||||
RepoGroupDeleteEvent,
|
||||
)
|
||||
|
||||
from rhodecode.events.pullrequest import ( # noqa
|
||||
from rhodecode.events.pullrequest import ( # pragma: no cover
|
||||
PullRequestEvent,
|
||||
PullRequestCreateEvent,
|
||||
PullRequestUpdateEvent,
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ import importlib
|
|||
from celery import Celery
|
||||
from celery import signals
|
||||
from celery import Task
|
||||
from celery import exceptions # noqa
|
||||
from celery import exceptions # pragma: no cover
|
||||
from kombu.serialization import register
|
||||
from pyramid.threadlocal import get_current_request
|
||||
|
||||
|
|
|
|||
|
|
@ -40,12 +40,12 @@ from sqlalchemy import (
|
|||
Boolean, String, Unicode, UnicodeText, DateTime, Integer, LargeBinary,
|
||||
Text, Float, PickleType)
|
||||
from sqlalchemy.sql.expression import true, false
|
||||
from sqlalchemy.sql.functions import coalesce, count # noqa
|
||||
from sqlalchemy.sql.functions import coalesce, count # pragma: no cover
|
||||
from sqlalchemy.orm import (
|
||||
relationship, joinedload, class_mapper, validates, aliased)
|
||||
from sqlalchemy.ext.declarative import declared_attr
|
||||
from sqlalchemy.ext.hybrid import hybrid_property
|
||||
from sqlalchemy.exc import IntegrityError # noqa
|
||||
from sqlalchemy.exc import IntegrityError # pragma: no cover
|
||||
from sqlalchemy.dialects.mysql import LONGTEXT
|
||||
from beaker.cache import cache_region
|
||||
from zope.cachedescriptors.property import Lazy as LazyProperty
|
||||
|
|
|
|||
|
|
@ -40,12 +40,12 @@ from sqlalchemy import (
|
|||
Boolean, String, Unicode, UnicodeText, DateTime, Integer, LargeBinary,
|
||||
Text, Float, PickleType)
|
||||
from sqlalchemy.sql.expression import true, false
|
||||
from sqlalchemy.sql.functions import coalesce, count # noqa
|
||||
from sqlalchemy.sql.functions import coalesce, count # pragma: no cover
|
||||
from sqlalchemy.orm import (
|
||||
relationship, joinedload, class_mapper, validates, aliased)
|
||||
from sqlalchemy.ext.declarative import declared_attr
|
||||
from sqlalchemy.ext.hybrid import hybrid_property
|
||||
from sqlalchemy.exc import IntegrityError # noqa
|
||||
from sqlalchemy.exc import IntegrityError # pragma: no cover
|
||||
from sqlalchemy.dialects.mysql import LONGTEXT
|
||||
from beaker.cache import cache_region
|
||||
from zope.cachedescriptors.property import Lazy as LazyProperty
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ from sqlalchemy.ext.hybrid import hybrid_property
|
|||
from sqlalchemy.orm import (
|
||||
relationship, joinedload, class_mapper, validates, aliased)
|
||||
from sqlalchemy.sql.expression import true
|
||||
from sqlalchemy.sql.functions import coalesce, count # noqa
|
||||
from sqlalchemy.sql.functions import coalesce, count # pragma: no cover
|
||||
from beaker.cache import cache_region
|
||||
from zope.cachedescriptors.property import Lazy as LazyProperty
|
||||
|
||||
|
|
|
|||
|
|
@ -264,7 +264,7 @@ class WhooshResultWrapper(object):
|
|||
# inside hit object, and we don't need all
|
||||
res = dict(hit)
|
||||
|
||||
f_path = '' # noqa
|
||||
f_path = '' # pragma: no cover
|
||||
if self.search_type in ['content', 'path']:
|
||||
f_path = res['path'][len(res['repository']):]
|
||||
f_path = f_path.lstrip(os.sep)
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
import os
|
||||
from pyramid.compat import configparser
|
||||
from pyramid.paster import bootstrap as pyramid_bootstrap, setup_logging # noqa
|
||||
from pyramid.paster import bootstrap as pyramid_bootstrap, setup_logging # pragma: no cover
|
||||
from pyramid.scripting import prepare
|
||||
|
||||
from rhodecode.lib.request import Request
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import greenlet
|
|||
|
||||
# Import everything from pycurl.
|
||||
# This allows us to use this module as a drop in replacement of pycurl.
|
||||
from pycurl import * # noqa
|
||||
from pycurl import * # pragma: no cover
|
||||
|
||||
from gevent import core
|
||||
from gevent.hub import Waiter
|
||||
|
|
|
|||
|
|
@ -40,12 +40,12 @@ from sqlalchemy import (
|
|||
Boolean, String, Unicode, UnicodeText, DateTime, Integer, LargeBinary,
|
||||
Text, Float, PickleType)
|
||||
from sqlalchemy.sql.expression import true, false
|
||||
from sqlalchemy.sql.functions import coalesce, count # noqa
|
||||
from sqlalchemy.sql.functions import coalesce, count # pragma: no cover
|
||||
from sqlalchemy.orm import (
|
||||
relationship, joinedload, class_mapper, validates, aliased)
|
||||
from sqlalchemy.ext.declarative import declared_attr
|
||||
from sqlalchemy.ext.hybrid import hybrid_property
|
||||
from sqlalchemy.exc import IntegrityError # noqa
|
||||
from sqlalchemy.exc import IntegrityError # pragma: no cover
|
||||
from sqlalchemy.dialects.mysql import LONGTEXT
|
||||
from zope.cachedescriptors.property import Lazy as LazyProperty
|
||||
|
||||
|
|
|
|||
|
|
@ -20,5 +20,5 @@
|
|||
|
||||
import colander
|
||||
|
||||
from colander import Invalid # noqa, don't remove this
|
||||
from colander import Invalid # pragma: no cover
|
||||
|
||||
|
|
|
|||
|
|
@ -475,11 +475,10 @@ class RcServerCommand(object):
|
|||
msg = ''
|
||||
self.out('Exiting%s (-v to see traceback)' % msg)
|
||||
|
||||
|
||||
def loadapp(self, app_spec, name, relative_to, **kw): # pragma: no cover
|
||||
return loadapp(app_spec, name=name, relative_to=relative_to, **kw)
|
||||
|
||||
def loadserver(self, server_spec, name, relative_to, **kw): # pragma:no cover
|
||||
def loadserver(self, server_spec, name, relative_to, **kw): # pragma: no cover
|
||||
return loadserver(
|
||||
server_spec, name=name, relative_to=relative_to, **kw)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue