author | David Douard <david.douard@logilab.fr> |
Fri, 22 Jul 2016 18:26:17 +0200 | |
branch | 3.22 |
changeset 11442 | 92db0bb8e26d |
parent 10935 | 049209b9e9d6 |
permissions | -rw-r--r-- |
10887
a0315e9f4c20
[tests] Don't import QUnitTestCase into tests' global namespace
Rémi Cardona <remi.cardona@logilab.fr>
parents:
10583
diff
changeset
|
1 |
from cubicweb.devtools import qunit |
5743
4a0600664f85
Use the qunit automatic launcher for existing testcase.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
2 |
|
4a0600664f85
Use the qunit automatic launcher for existing testcase.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
3 |
from os import path as osp |
4a0600664f85
Use the qunit automatic launcher for existing testcase.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
4 |
|
4a0600664f85
Use the qunit automatic launcher for existing testcase.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
5 |
|
10887
a0315e9f4c20
[tests] Don't import QUnitTestCase into tests' global namespace
Rémi Cardona <remi.cardona@logilab.fr>
parents:
10583
diff
changeset
|
6 |
class JScript(qunit.QUnitTestCase): |
5743
4a0600664f85
Use the qunit automatic launcher for existing testcase.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
7 |
|
4a0600664f85
Use the qunit automatic launcher for existing testcase.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
8 |
all_js_tests = ( |
10935
049209b9e9d6
[qunit] stop dealing with filesystem paths
Rémi Cardona <remi.cardona@logilab.fr>, Julien Cristau <julien.cristau@logilab.fr>
parents:
10887
diff
changeset
|
9 |
("/static/jstests/test_utils.js", ( |
049209b9e9d6
[qunit] stop dealing with filesystem paths
Rémi Cardona <remi.cardona@logilab.fr>, Julien Cristau <julien.cristau@logilab.fr>
parents:
10887
diff
changeset
|
10 |
"/data/cubicweb.js", |
049209b9e9d6
[qunit] stop dealing with filesystem paths
Rémi Cardona <remi.cardona@logilab.fr>, Julien Cristau <julien.cristau@logilab.fr>
parents:
10887
diff
changeset
|
11 |
"/data/cubicweb.compat.js", |
049209b9e9d6
[qunit] stop dealing with filesystem paths
Rémi Cardona <remi.cardona@logilab.fr>, Julien Cristau <julien.cristau@logilab.fr>
parents:
10887
diff
changeset
|
12 |
"/data/cubicweb.python.js", |
049209b9e9d6
[qunit] stop dealing with filesystem paths
Rémi Cardona <remi.cardona@logilab.fr>, Julien Cristau <julien.cristau@logilab.fr>
parents:
10887
diff
changeset
|
13 |
"/static/jstests/utils.js", |
5766
c397819f2482
[js tests] fix javascripts tests definition, test_datetime.js now included in test_utils.js, which test other stuff as well
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5743
diff
changeset
|
14 |
), |
c397819f2482
[js tests] fix javascripts tests definition, test_datetime.js now included in test_utils.js, which test other stuff as well
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5743
diff
changeset
|
15 |
), |
c397819f2482
[js tests] fix javascripts tests definition, test_datetime.js now included in test_utils.js, which test other stuff as well
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5743
diff
changeset
|
16 |
|
10935
049209b9e9d6
[qunit] stop dealing with filesystem paths
Rémi Cardona <remi.cardona@logilab.fr>, Julien Cristau <julien.cristau@logilab.fr>
parents:
10887
diff
changeset
|
17 |
("/static/jstests/test_htmlhelpers.js", ( |
049209b9e9d6
[qunit] stop dealing with filesystem paths
Rémi Cardona <remi.cardona@logilab.fr>, Julien Cristau <julien.cristau@logilab.fr>
parents:
10887
diff
changeset
|
18 |
"/data/cubicweb.js", |
049209b9e9d6
[qunit] stop dealing with filesystem paths
Rémi Cardona <remi.cardona@logilab.fr>, Julien Cristau <julien.cristau@logilab.fr>
parents:
10887
diff
changeset
|
19 |
"/data/cubicweb.compat.js", |
049209b9e9d6
[qunit] stop dealing with filesystem paths
Rémi Cardona <remi.cardona@logilab.fr>, Julien Cristau <julien.cristau@logilab.fr>
parents:
10887
diff
changeset
|
20 |
"/data/cubicweb.python.js", |
049209b9e9d6
[qunit] stop dealing with filesystem paths
Rémi Cardona <remi.cardona@logilab.fr>, Julien Cristau <julien.cristau@logilab.fr>
parents:
10887
diff
changeset
|
21 |
"/data/cubicweb.htmlhelpers.js", |
5766
c397819f2482
[js tests] fix javascripts tests definition, test_datetime.js now included in test_utils.js, which test other stuff as well
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5743
diff
changeset
|
22 |
), |
c397819f2482
[js tests] fix javascripts tests definition, test_datetime.js now included in test_utils.js, which test other stuff as well
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5743
diff
changeset
|
23 |
), |
c397819f2482
[js tests] fix javascripts tests definition, test_datetime.js now included in test_utils.js, which test other stuff as well
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5743
diff
changeset
|
24 |
|
10935
049209b9e9d6
[qunit] stop dealing with filesystem paths
Rémi Cardona <remi.cardona@logilab.fr>, Julien Cristau <julien.cristau@logilab.fr>
parents:
10887
diff
changeset
|
25 |
("/static/jstests/test_ajax.js", ( |
049209b9e9d6
[qunit] stop dealing with filesystem paths
Rémi Cardona <remi.cardona@logilab.fr>, Julien Cristau <julien.cristau@logilab.fr>
parents:
10887
diff
changeset
|
26 |
"/data/cubicweb.python.js", |
049209b9e9d6
[qunit] stop dealing with filesystem paths
Rémi Cardona <remi.cardona@logilab.fr>, Julien Cristau <julien.cristau@logilab.fr>
parents:
10887
diff
changeset
|
27 |
"/data/cubicweb.js", |
049209b9e9d6
[qunit] stop dealing with filesystem paths
Rémi Cardona <remi.cardona@logilab.fr>, Julien Cristau <julien.cristau@logilab.fr>
parents:
10887
diff
changeset
|
28 |
"/data/cubicweb.compat.js", |
049209b9e9d6
[qunit] stop dealing with filesystem paths
Rémi Cardona <remi.cardona@logilab.fr>, Julien Cristau <julien.cristau@logilab.fr>
parents:
10887
diff
changeset
|
29 |
"/data/cubicweb.htmlhelpers.js", |
049209b9e9d6
[qunit] stop dealing with filesystem paths
Rémi Cardona <remi.cardona@logilab.fr>, Julien Cristau <julien.cristau@logilab.fr>
parents:
10887
diff
changeset
|
30 |
"/data/cubicweb.ajax.js", |
5766
c397819f2482
[js tests] fix javascripts tests definition, test_datetime.js now included in test_utils.js, which test other stuff as well
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5743
diff
changeset
|
31 |
), |
c397819f2482
[js tests] fix javascripts tests definition, test_datetime.js now included in test_utils.js, which test other stuff as well
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5743
diff
changeset
|
32 |
), |
5743
4a0600664f85
Use the qunit automatic launcher for existing testcase.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
33 |
) |
4a0600664f85
Use the qunit automatic launcher for existing testcase.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
34 |
|
4a0600664f85
Use the qunit automatic launcher for existing testcase.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
35 |
|
4a0600664f85
Use the qunit automatic launcher for existing testcase.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
diff
changeset
|
36 |
if __name__ == '__main__': |
10887
a0315e9f4c20
[tests] Don't import QUnitTestCase into tests' global namespace
Rémi Cardona <remi.cardona@logilab.fr>
parents:
10583
diff
changeset
|
37 |
from unittest import main |
a0315e9f4c20
[tests] Don't import QUnitTestCase into tests' global namespace
Rémi Cardona <remi.cardona@logilab.fr>
parents:
10583
diff
changeset
|
38 |
main() |