Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / vigiboard / tests / __init__.py @ 011743be

History | View | Annotate | Download (753 Bytes)

1 57f7cb3f Gabriel DE PERTHUIS
# -*- coding: utf-8 -*-
2 011743be Francois POIROTTE
# Copyright (C) 2006-2020 CS GROUP - France
3 b373a5de Aurelien BOMPARD
# License: GNU GPL v2 <http://www.gnu.org/licenses/gpl-2.0.html>
4
5 57f7cb3f Gabriel DE PERTHUIS
"""Unit and functional test suite for vigiboard."""
6
7 04cd2200 Francois POIROTTE
from vigilo.turbogears.test import setup_db, teardown_db
8
from vigilo.turbogears.test import TestController as TestTGController
9 7365fb51 Francois POIROTTE
10 763c9bfa Francois POIROTTE
__all__ = ['setup_db', 'teardown_db', 'TestController']
11 57f7cb3f Gabriel DE PERTHUIS
12 04cd2200 Francois POIROTTE
class TestController(TestTGController):
13 7bde24ad Francois POIROTTE
    def get_rows(self, response):
14
        return response.lxml.xpath(
15
            '//table[contains(concat(" ", @class, " "), " vigitable ")]'
16
            '/tbody/tr')
17
18
    def get_cells(self, response):
19
        return response.lxml.xpath(
20
            '//table[contains(concat(" ", @class, " "), " vigitable ")]'
21
            '/tbody/tr/td')