##// END OF EJS Templates
code: unified coverage notes to # pragma: no cover
marcink -
r3282:5c2818aa default
parent child Browse files
Show More
@@ -43,7 +43,7 b' then you can retrieve the url by simply '
43 43 The redirection must be first implemented in our servers before
44 44 you can see it working.
45 45 """
46 # flake8: noqa
46 # pragma: no cover
47 47 from __future__ import unicode_literals
48 48
49 49 link_config = [
@@ -44,7 +44,7 b' def trigger(event, registry=None):'
44 44 integrations_event_handler(event)
45 45
46 46
47 from rhodecode.events.user import ( # noqa
47 from rhodecode.events.user import ( # pragma: no cover
48 48 UserPreCreate,
49 49 UserPostCreate,
50 50 UserPreUpdate,
@@ -52,7 +52,7 b' from rhodecode.events.user import ( # n'
52 52 UserPermissionsChange,
53 53 )
54 54
55 from rhodecode.events.repo import ( # noqa
55 from rhodecode.events.repo import ( # pragma: no cover
56 56 RepoEvent,
57 57 RepoPreCreateEvent, RepoCreateEvent,
58 58 RepoPreDeleteEvent, RepoDeleteEvent,
@@ -60,14 +60,14 b' from rhodecode.events.repo import ( # n'
60 60 RepoPrePullEvent, RepoPullEvent,
61 61 )
62 62
63 from rhodecode.events.repo_group import ( # noqa
63 from rhodecode.events.repo_group import ( # pragma: no cover
64 64 RepoGroupEvent,
65 65 RepoGroupCreateEvent,
66 66 RepoGroupUpdateEvent,
67 67 RepoGroupDeleteEvent,
68 68 )
69 69
70 from rhodecode.events.pullrequest import ( # noqa
70 from rhodecode.events.pullrequest import ( # pragma: no cover
71 71 PullRequestEvent,
72 72 PullRequestCreateEvent,
73 73 PullRequestUpdateEvent,
@@ -33,7 +33,7 b' import importlib'
33 33 from celery import Celery
34 34 from celery import signals
35 35 from celery import Task
36 from celery import exceptions # noqa
36 from celery import exceptions # pragma: no cover
37 37 from kombu.serialization import register
38 38 from pyramid.threadlocal import get_current_request
39 39
@@ -40,12 +40,12 b' from sqlalchemy import ('
40 40 Boolean, String, Unicode, UnicodeText, DateTime, Integer, LargeBinary,
41 41 Text, Float, PickleType)
42 42 from sqlalchemy.sql.expression import true, false
43 from sqlalchemy.sql.functions import coalesce, count # noqa
43 from sqlalchemy.sql.functions import coalesce, count # pragma: no cover
44 44 from sqlalchemy.orm import (
45 45 relationship, joinedload, class_mapper, validates, aliased)
46 46 from sqlalchemy.ext.declarative import declared_attr
47 47 from sqlalchemy.ext.hybrid import hybrid_property
48 from sqlalchemy.exc import IntegrityError # noqa
48 from sqlalchemy.exc import IntegrityError # pragma: no cover
49 49 from sqlalchemy.dialects.mysql import LONGTEXT
50 50 from beaker.cache import cache_region
51 51 from zope.cachedescriptors.property import Lazy as LazyProperty
@@ -40,12 +40,12 b' from sqlalchemy import ('
40 40 Boolean, String, Unicode, UnicodeText, DateTime, Integer, LargeBinary,
41 41 Text, Float, PickleType)
42 42 from sqlalchemy.sql.expression import true, false
43 from sqlalchemy.sql.functions import coalesce, count # noqa
43 from sqlalchemy.sql.functions import coalesce, count # pragma: no cover
44 44 from sqlalchemy.orm import (
45 45 relationship, joinedload, class_mapper, validates, aliased)
46 46 from sqlalchemy.ext.declarative import declared_attr
47 47 from sqlalchemy.ext.hybrid import hybrid_property
48 from sqlalchemy.exc import IntegrityError # noqa
48 from sqlalchemy.exc import IntegrityError # pragma: no cover
49 49 from sqlalchemy.dialects.mysql import LONGTEXT
50 50 from beaker.cache import cache_region
51 51 from zope.cachedescriptors.property import Lazy as LazyProperty
@@ -41,7 +41,7 b' from sqlalchemy.ext.hybrid import hybrid'
41 41 from sqlalchemy.orm import (
42 42 relationship, joinedload, class_mapper, validates, aliased)
43 43 from sqlalchemy.sql.expression import true
44 from sqlalchemy.sql.functions import coalesce, count # noqa
44 from sqlalchemy.sql.functions import coalesce, count # pragma: no cover
45 45 from beaker.cache import cache_region
46 46 from zope.cachedescriptors.property import Lazy as LazyProperty
47 47
@@ -264,7 +264,7 b' class WhooshResultWrapper(object):'
264 264 # inside hit object, and we don't need all
265 265 res = dict(hit)
266 266
267 f_path = '' # noqa
267 f_path = '' # pragma: no cover
268 268 if self.search_type in ['content', 'path']:
269 269 f_path = res['path'][len(res['repository']):]
270 270 f_path = f_path.lstrip(os.sep)
@@ -20,7 +20,7 b''
20 20
21 21 import os
22 22 from pyramid.compat import configparser
23 from pyramid.paster import bootstrap as pyramid_bootstrap, setup_logging # noqa
23 from pyramid.paster import bootstrap as pyramid_bootstrap, setup_logging # pragma: no cover
24 24 from pyramid.scripting import prepare
25 25
26 26 from rhodecode.lib.request import Request
@@ -31,7 +31,7 b' import greenlet'
31 31
32 32 # Import everything from pycurl.
33 33 # This allows us to use this module as a drop in replacement of pycurl.
34 from pycurl import * # noqa
34 from pycurl import * # pragma: no cover
35 35
36 36 from gevent import core
37 37 from gevent.hub import Waiter
@@ -40,12 +40,12 b' from sqlalchemy import ('
40 40 Boolean, String, Unicode, UnicodeText, DateTime, Integer, LargeBinary,
41 41 Text, Float, PickleType)
42 42 from sqlalchemy.sql.expression import true, false
43 from sqlalchemy.sql.functions import coalesce, count # noqa
43 from sqlalchemy.sql.functions import coalesce, count # pragma: no cover
44 44 from sqlalchemy.orm import (
45 45 relationship, joinedload, class_mapper, validates, aliased)
46 46 from sqlalchemy.ext.declarative import declared_attr
47 47 from sqlalchemy.ext.hybrid import hybrid_property
48 from sqlalchemy.exc import IntegrityError # noqa
48 from sqlalchemy.exc import IntegrityError # pragma: no cover
49 49 from sqlalchemy.dialects.mysql import LONGTEXT
50 50 from zope.cachedescriptors.property import Lazy as LazyProperty
51 51
@@ -20,5 +20,5 b''
20 20
21 21 import colander
22 22
23 from colander import Invalid # noqa, don't remove this
23 from colander import Invalid # pragma: no cover
24 24
@@ -475,7 +475,6 b' class RcServerCommand(object):'
475 475 msg = ''
476 476 self.out('Exiting%s (-v to see traceback)' % msg)
477 477
478
479 478 def loadapp(self, app_spec, name, relative_to, **kw): # pragma: no cover
480 479 return loadapp(app_spec, name=name, relative_to=relative_to, **kw)
481 480
General Comments 0
You need to be logged in to leave comments. Login now