21 Commits

Author SHA1 Message Date
Ben Sturmfels
9bf3bc1944 Remove remaining imports/calls to six not automatically removed by pyupgrade. 2021-03-05 23:42:38 +11:00
Ben Sturmfels
dec47c7102 Apply pyupgrade --py3-plus to remove Python 2 compatibility code. 2021-03-05 23:12:19 +11:00
Jonathan Sandoval
caee9aa2e3 squash! Custom exception in mail. 2016-04-08 13:17:26 -05:00
Jonathan Sandoval
9d37bcd06f Mail tests with no mail server configured. 2016-04-08 13:07:06 -05:00
Christopher Allan Webber
fa3f46d714 Import mock correctly on py3
This commit sponsored by Andrew McNicol.  Thank you!
2014-09-16 14:46:02 -05:00
Christopher Allan Webber
f6bad0eb26 Merge branch 'master' into merge-python3-port
Has some issues, will iteratively fix!

Conflicts:
	mediagoblin/gmg_commands/__init__.py
	mediagoblin/gmg_commands/deletemedia.py
	mediagoblin/gmg_commands/users.py
	mediagoblin/oauth/views.py
	mediagoblin/plugins/api/views.py
	mediagoblin/tests/test_api.py
	mediagoblin/tests/test_edit.py
	mediagoblin/tests/test_oauth1.py
	mediagoblin/tests/test_util.py
	mediagoblin/tools/mail.py
	mediagoblin/webfinger/views.py
	setup.py
2014-09-16 14:01:43 -05:00
Jessica Tallon
7ffd4cf4b5 Fix #861 - Add unit test and documentation for email_smtp_force_starttls 2014-08-12 19:23:19 +01:00
Berker Peksag
a7e1d8829f mbox_message.get_payload() returns bytestring. 2014-08-04 22:08:23 +03:00
Berker Peksag
e49b7e02b2 Use six.text_type instead of unicode().
I will be switch to use ``from __future__ import unicode_literals`` later.
2014-06-02 20:59:28 +03:00
Boris Bobrov
2636dddfa6 added new slugify with unidecode 2014-03-11 11:01:04 -05:00
Elrond
d891966424 Unit test for ReallyLazyProxy.
LazyProxy caches its value. So create a unit test for
lazy_pass_to_ugettext to make sure its returned proxy
actually gives a different translation when the locale
is switched.
2013-04-25 14:31:29 +02:00
Christopher Allan Webber
208842590c Also make slug unit test work with the new optionally-translitcodec-free code 2013-01-06 21:46:38 -06:00
Christopher Allan Webber
cf29e8a824 It's 2012 all up in here 2012-02-02 09:44:13 -06:00
Aaron Williamson
152a3bfaa3 Finished splitting util.py into separate files. 2011-10-01 18:05:44 -04:00
Aaron Williamson
ae3bc7fabf Moved common, translation, template, and url code out of util.py and into tools/[file].py 2011-10-01 09:31:42 -04:00
Will Kahn-Greene
12a100e4d8 508. Updates copyright/license information 2011-09-01 20:50:19 -04:00
Christopher Allan Webber
a68ee5556e A super strict HTML cleaner method with mediocre tests. 2011-06-13 21:01:19 -05:00
Aaron Williamson
0546833c6e Generate unique slugs for newly submitted images. 2011-05-13 12:18:52 -04:00
Christopher Allan Webber
8b28bee4c1 Added some locale determination tools 2011-05-12 14:57:58 -05:00
Christopher Allan Webber
4d4f6050d8 send_email tool and email sending tests 2011-05-04 08:00:08 -05:00
Christopher Allan Webber
cb8ea0fe3f Moved app.load_controller -> util.import_component and added tests. 2011-04-17 09:43:03 -05:00