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