Browse Source

[Stress] Added test for unicode printing/logging tasks.

Ask Solem 9 years ago
parent
commit
be9d3df3ba
2 changed files with 7 additions and 1 deletions
  1. 1 0
      funtests/stress/stress/app.py
  2. 6 1
      funtests/stress/stress/suite.py

+ 1 - 0
funtests/stress/stress/app.py

@@ -113,6 +113,7 @@ def retries(self):
 
 @app.task
 def print_unicode():
+    logger.warning('hå它 valmuefrø')
     print('hiöäüß')
 
 

+ 6 - 1
funtests/stress/stress/suite.py

@@ -19,7 +19,7 @@ from celery.utils.timeutils import humanize_seconds
 
 from .app import (
     marker, _marker, add, any_, exiting, kill, sleeping,
-    sleeping_ignore_limits, any_returning
+    sleeping_ignore_limits, any_returning, print_unicode,
 )
 from .data import BIG, SMALL
 from .fbi import FBI
@@ -267,6 +267,11 @@ class Suite(BaseSuite):
         self.join(group(add.s(i, i) for i in range(1000))(),
                   timeout=10, propagate=True)
 
+    @testcase('all', 'green')
+    def unicodetask(self):
+        self.join(group(print_unicode.s() for _ in range(5))(),
+                  timeout=1, propagate=True)
+
     @testcase('all')
     def always_timeout(self):
         self.join(