[test] do not overwrite user's CW_CUBES_PATH in unittest_migration
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 23 Sep 2015 15:32:17 +0200
changeset 10801 b4beaf0bccea
parent 10800 1e4ddf5ee9ad
child 10802 3d948d35d94f
[test] do not overwrite user's CW_CUBES_PATH in unittest_migration Currently when you rely on your CW_CUBES_PATH environment variable to locate cubes necessary for cubicweb's tests, the migration test crashes because it overrides the env var.
server/test/unittest_migractions.py
--- a/server/test/unittest_migractions.py	Tue Nov 03 16:00:34 2015 +0100
+++ b/server/test/unittest_migractions.py	Wed Sep 23 15:32:17 2015 +0200
@@ -54,7 +54,8 @@
 
 class MigrationConfig(cubicweb.devtools.TestServerConfiguration):
     default_sources = cubicweb.devtools.DEFAULT_PSQL_SOURCES
-    CUBES_PATH = [osp.join(HERE, 'data-migractions', 'cubes')]
+    CUBES_PATH = cubicweb.devtools.TestServerConfiguration.CUBES_PATH + [
+        osp.join(HERE, 'data-migractions', 'cubes')]
 
 
 class MigrationTC(CubicWebTC):