Browse Source

add special color file for test

Guénaël Muller 5 years ago
parent
commit
343858e1a0
2 changed files with 15 additions and 0 deletions
  1. 6 0
      backend/color-test.json
  2. 9 0
      backend/tests_configs.ini

+ 6 - 0
backend/color-test.json View File

@@ -0,0 +1,6 @@
1
+{
2
+  "primary": "#7d4e24",
3
+  "contents/html-document": "#3f52e3",
4
+  "contents/thread": "#ad4cf9",
5
+  "contents/file": "#ff9900"
6
+}

+ 9 - 0
backend/tests_configs.ini View File

@@ -5,6 +5,8 @@ depot_storage_dir = /tmp/test/depot
5 5
 user.auth_token.validity = 604800
6 6
 preview_cache_dir = /tmp/test/preview_cache
7 7
 website.base_url = http://localhost:6543
8
+color.config_file_path = %(here)s/color-test.json
9
+
8 10
 [app:command_test]
9 11
 use = egg:tracim_backend
10 12
 sqlalchemy.url = sqlite:///tracim_test.sqlite
@@ -13,6 +15,7 @@ depot_storage_dir = /tmp/test/depot
13 15
 user.auth_token.validity = 604800
14 16
 preview_cache_dir = /tmp/test/preview_cache
15 17
 website.base_url = http://localhost:6543
18
+color.config_file_path = %(here)s/color-test.json
16 19
 
17 20
 [mail_test]
18 21
 sqlalchemy.url = sqlite:///:memory:
@@ -39,6 +42,7 @@ email.notification.smtp.port = 1025
39 42
 email.notification.smtp.user = test_user
40 43
 email.notification.smtp.password = just_a_password
41 44
 website.base_url = http://localhost:6543
45
+color.config_file_path = %(here)s/color-test.json
42 46
 
43 47
 [mail_test_async]
44 48
 sqlalchemy.url = sqlite:///:memory:
@@ -66,6 +70,7 @@ email.notification.smtp.port = 1025
66 70
 email.notification.smtp.user = test_user
67 71
 email.notification.smtp.password = just_a_password
68 72
 website.base_url = http://localhost:6543
73
+color.config_file_path = %(here)s/color-test.json
69 74
 
70 75
 [functional_test]
71 76
 sqlalchemy.url = sqlite:///tracim_test.sqlite
@@ -76,6 +81,7 @@ preview_cache_dir = /tmp/test/preview_cache
76 81
 preview.jpg.restricted_dims = True
77 82
 email.notification.activated = false
78 83
 website.base_url = http://localhost:6543
84
+color.config_file_path = %(here)s/color-test.json
79 85
 
80 86
 [functional_test_no_db]
81 87
 sqlalchemy.url = sqlite://
@@ -86,6 +92,7 @@ preview_cache_dir = /tmp/test/preview_cache
86 92
 preview.jpg.restricted_dims = True
87 93
 email.notification.activated = false
88 94
 website.base_url = http://localhost:6543
95
+color.config_file_path = %(here)s/color-test.json
89 96
 
90 97
 [functional_test_with_mail_test_sync]
91 98
 sqlalchemy.url = sqlite:///tracim_test.sqlite
@@ -111,6 +118,7 @@ email.notification.smtp.port = 1025
111 118
 email.notification.smtp.user = test_user
112 119
 email.notification.smtp.password = just_a_password
113 120
 website.base_url = http://localhost:6543
121
+color.config_file_path = %(here)s/color-test.json
114 122
 
115 123
 [functional_test_with_mail_test_async]
116 124
 sqlalchemy.url = sqlite:///tracim_test.sqlite
@@ -136,3 +144,4 @@ email.notification.smtp.port = 1025
136 144
 email.notification.smtp.user = test_user
137 145
 email.notification.smtp.password = just_a_password
138 146
 website.base_url = http://localhost:6543
147
+color.config_file_path = %(here)s/color-test.json