More Unicode titles to prevent non-Unicode SQLAlchemy warnings.
This commit is contained in:
parent
7a258b1408
commit
ed3ff88eed
@ -14,6 +14,10 @@
|
|||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
import sys
|
||||||
|
reload(sys)
|
||||||
|
sys.setdefaultencoding('utf-8')
|
||||||
|
|
||||||
import urlparse
|
import urlparse
|
||||||
import os
|
import os
|
||||||
|
|
||||||
@ -229,12 +233,12 @@ class TestSubmission:
|
|||||||
def test_evil_jpg(self):
|
def test_evil_jpg(self):
|
||||||
# Test non-supported file with .jpg extension
|
# Test non-supported file with .jpg extension
|
||||||
# -------------------------------------------
|
# -------------------------------------------
|
||||||
self.check_false_image('Malicious Upload 2', EVIL_JPG)
|
self.check_false_image(u'Malicious Upload 2', EVIL_JPG)
|
||||||
|
|
||||||
def test_evil_png(self):
|
def test_evil_png(self):
|
||||||
# Test non-supported file with .png extension
|
# Test non-supported file with .png extension
|
||||||
# -------------------------------------------
|
# -------------------------------------------
|
||||||
self.check_false_image('Malicious Upload 3', EVIL_PNG)
|
self.check_false_image(u'Malicious Upload 3', EVIL_PNG)
|
||||||
|
|
||||||
def test_processing(self):
|
def test_processing(self):
|
||||||
data = {'title': u'Big Blue'}
|
data = {'title': u'Big Blue'}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user