* Feature #678: Drop custom delimiters in tags
authorManuel Urbano Santos <mu@member.fsf.org>
Sun, 27 Nov 2011 12:55:07 +0000 (13:55 +0100)
committerManuel Urbano Santos <mu@member.fsf.org>
Sun, 27 Nov 2011 12:55:07 +0000 (13:55 +0100)
  * Eliminate the definition of the tag delimiter for tests.
  * Remove a test that was related to custom tags delimiter.
* Bug #671: Tags list on Edit page is not seperated by spaces and hard to read
  * Modify a test to include this space.

mediagoblin/tests/test_mgoblin_app.ini
mediagoblin/tests/test_tags.py

index f979e810714d63ad97beeda1829474e3038ce66d..2525a4f90b390e6b4fbfaef7259e2719d92c0ebd 100644 (file)
@@ -5,7 +5,6 @@ email_debug_mode = true
 db_name = __mediagoblin_tests__
 
 # tag parsing
-tags_delimiter = ","
 tags_max_length = 50
 
 # Celery shouldn't be set up by the application as it's setup via
index a05831c9fa7ca03151702b93d27560bf52d605ed..583c1a55d1e9113478fb9073614bb3fa06258c77 100644 (file)
@@ -39,11 +39,4 @@ def test_list_of_dicts_conversion(test_app):
     # Make sure converting the list of dicts to a string works
     assert text.media_tags_as_string([{'name': u'yin', 'slug': u'yin'},
                                       {'name': u'yang', 'slug': u'yang'}]) == \
-                                      u'yin,yang'
-
-    # If the tag delimiter is a space then we expect different results
-    mg_globals.app_config['tags_delimiter'] = u' '
-    assert text.convert_to_tag_list_of_dicts('unicorn ceramic nazi') == [
-                                       {'name': u'unicorn', 'slug': u'unicorn'},
-                                       {'name': u'ceramic', 'slug': u'ceramic'},
-                                       {'name': u'nazi', 'slug': u'nazi'}]
+                                      u'yin, yang'