Revision 8b2edebe
vigiboard: corrections pylint
Change-Id: I28e3083b5256a03db4fcf4475e56a68146124602
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/621
Tested-by: Build system <qa@vigilo-dev.si.c-s.fr>
Reviewed-by: Francois POIROTTE <francois.poirotte@c-s.fr>
vigiboard/tests/functional/test_search_form_service.py | ||
---|---|---|
12 | 12 |
from vigiboard.tests import TestController |
13 | 13 |
from vigilo.models.session import DBSession |
14 | 14 |
from vigilo.models.demo import functions |
15 |
from vigilo.models.tables import SupItemGroup, Host, Permission, \ |
|
16 |
StateName, LowLevelService, \ |
|
17 |
Event, CorrEvent, User, UserGroup, \ |
|
18 |
DataPermission |
|
15 |
from vigilo.models.tables import Permission, User, UserGroup, DataPermission |
|
16 |
|
|
19 | 17 |
|
20 | 18 |
def insert_deps(): |
21 | 19 |
"""Insère les dépendances nécessaires aux tests.""" |
... | ... | |
32 | 30 |
DBSession.flush() |
33 | 31 |
|
34 | 32 |
event = functions.add_event(service, u'WARNING', u'Hello world', timestamp) |
35 |
correvent = functions.add_correvent([event], timestamp=timestamp)
|
|
33 |
functions.add_correvent([event], timestamp=timestamp) |
|
36 | 34 |
return (hostgroup, servicegroup) |
37 | 35 |
|
36 |
|
|
38 | 37 |
class TestSearchFormService(TestController): |
39 | 38 |
"""Teste la récupération d'événements selon le groupe de services.""" |
40 | 39 |
def setUp(self): |
Also available in: Unified diff