debian/copyright
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 07 Dec 2010 12:18:20 +0100
brancholdstable
changeset 7078 bad26a22fe29
parent 5421 8167de96c523
child 7046 d0410eb4d8bb
permissions -rw-r--r--
[test] New Handling of database for test. This patch adds a new TestDataBaseHandler class. TestDataBaseHandler are in charge of Setup, backup, restore, connection, repository caching and cleanup for database used during the test. TestDataBaseHandler reuse code and logic previously found in cubicweb.devtools functions and devtools.testlib.CubicwebTC. TestDataBaseHandler is an abstract class and must be subclassed to implement functionalities specific to each driver. TestDataBaseHandler can store and restore various database setups. devtools.testlib.CubicwebTC gains a test_db_id class attribute to specify that its TestCase uses a specific database that should be cached. The pre_setup_database class method is used to setup the database that will be cached. The setup_database method is kept uncached. The same TestDataBaseHandler are reused for every test using the same config object. TestDataBaseHandler try to reuse Repository objects as much as possible. All cubicweb test have been updated.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     1
This package was debianized by Logilab <contact@logilab.fr>.
5406
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
     2
It was downloaded from ftp://ftp.logilab.org/pub/cubicweb
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     3
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     4
5406
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
     5
Upstream Author:
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     6
5406
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
     7
    Logilab <contact@logilab.fr>
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     8
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
     9
Copyright:
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    10
5406
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
    11
    Copyright (c) 2003-2010 LOGILAB S.A. (Paris, FRANCE).
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
    12
    http://www.logilab.fr/ -- mailto:contact@logilab.fr
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    13
5406
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
    14
License:
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    15
5421
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    16
    This program is free software; you can redistribute it and/or modify it
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    17
    under the terms of the GNU Lesser General Public License as published by the
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    18
    Free Software Foundation; either version 2.1 of the License, or (at your
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    19
    option) any later version.
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    20
5406
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
    21
    This program is distributed in the hope that it will be useful, but WITHOUT
5421
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    22
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    23
    FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    24
    for more details.
5406
13d7e220d159 proper copyright file
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 0
diff changeset
    25
5421
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    26
    You should have received a copy of the GNU Lessser General Public License
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    27
    along with this program; if not, write to the Free Software Foundation,
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    28
    Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
0
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    29
b97547f5f1fa Showtime !
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
diff changeset
    30
On Debian systems, the complete text of the GNU Lesser General Public License
5421
8167de96c523 proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5406
diff changeset
    31
may be found in '/usr/share/common-licenses/LGPL-2.1'.