-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcms_helper.py
executable file
·61 lines (51 loc) · 1.21 KB
/
cms_helper.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env python
from tempfile import mkdtemp
def gettext(s):
return s
HELPER_SETTINGS = {
"NOSE_ARGS": [
"-s",
],
"ROOT_URLCONF": "tests.test_utils.urls",
"INSTALLED_APPS": [
"taggit",
"taggit_autosuggest",
"djangocms_page_tags",
"tests.test_utils",
],
"LANGUAGE_CODE": "en",
"LANGUAGES": (
("en", gettext("English")),
("fr", gettext("French")),
("it", gettext("Italiano")),
),
"CMS_LANGUAGES": {
1: [
{
"code": "en",
"name": gettext("English"),
"public": True,
},
{
"code": "it",
"name": gettext("Italiano"),
"public": True,
},
{
"code": "fr",
"name": gettext("French"),
"public": True,
},
],
"default": {
"hide_untranslated": False,
},
},
"CMS_TEMPLATES": (("page_tags.html", "page"),),
"FILE_UPLOAD_TEMP_DIR": mkdtemp(),
}
def run():
from djangocms_helper import runner
runner.cms("djangocms_page_tags")
if __name__ == "__main__":
run()