mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Corrected several typos in string literals and test names.
This commit is contained in:
		
				
					committed by
					
						 Carlton Gibson
						Carlton Gibson
					
				
			
			
				
	
			
			
			
						parent
						
							052388aba4
						
					
				
				
					commit
					65e86948b8
				
			| @@ -65,7 +65,7 @@ to_pretty_wkt = string_output( | ||||
| # Memory leak fixed in GDAL 1.5; still exists in 1.4. | ||||
| to_xml = string_output(lgdal.OSRExportToXML, [c_void_p, POINTER(c_char_p), c_char_p], offset=-2, decoding='utf-8') | ||||
|  | ||||
| # String attribute retrival routines. | ||||
| # String attribute retrieval routines. | ||||
| get_attr_value = const_string_output(std_call('OSRGetAttrValue'), [c_void_p, c_char_p, c_int], decoding='utf-8') | ||||
| get_auth_name = const_string_output(lgdal.OSRGetAuthorityName, [c_void_p, c_char_p], decoding='ascii') | ||||
| get_auth_code = const_string_output(lgdal.OSRGetAuthorityCode, [c_void_p, c_char_p], decoding='ascii') | ||||
|   | ||||
| @@ -52,7 +52,7 @@ class SkipFile(UploadFileException): | ||||
|  | ||||
| class StopFutureHandlers(UploadFileException): | ||||
|     """ | ||||
|     Upload handers that have handled a file and do not want future handlers to | ||||
|     Upload handlers that have handled a file and do not want future handlers to | ||||
|     run should raise this exception instead of returning None. | ||||
|     """ | ||||
|     pass | ||||
|   | ||||
| @@ -86,7 +86,7 @@ def sanitize_address(addr, encoding): | ||||
|             if rest: | ||||
|                 # The entire email address must be parsed. | ||||
|                 raise ValueError( | ||||
|                     'Invalid adddress; only %s could be parsed from "%s"' | ||||
|                     'Invalid address; only %s could be parsed from "%s"' | ||||
|                     % (token, addr) | ||||
|                 ) | ||||
|             nm = token.display_name or '' | ||||
|   | ||||
| @@ -377,7 +377,7 @@ class AggregationTests(TestCase): | ||||
|             {'c__max': 3} | ||||
|         ) | ||||
|  | ||||
|     def test_conditional_aggreate(self): | ||||
|     def test_conditional_aggregate(self): | ||||
|         # Conditional aggregation of a grouped queryset. | ||||
|         self.assertEqual( | ||||
|             Book.objects.annotate(c=Count('authors')).values('pk').aggregate(test=Sum( | ||||
|   | ||||
| @@ -520,8 +520,8 @@ class FileStorageTests(SimpleTestCase): | ||||
|         ) | ||||
|         defaults_storage = self.storage_class() | ||||
|         settings = { | ||||
|             'MEDIA_ROOT': 'overriden_media_root', | ||||
|             'MEDIA_URL': 'overriden_media_url/', | ||||
|             'MEDIA_ROOT': 'overridden_media_root', | ||||
|             'MEDIA_URL': 'overridden_media_url/', | ||||
|             'FILE_UPLOAD_PERMISSIONS': 0o333, | ||||
|             'FILE_UPLOAD_DIRECTORY_PERMISSIONS': 0o333, | ||||
|         } | ||||
|   | ||||
| @@ -122,7 +122,7 @@ class SelectTest(WidgetTest): | ||||
|             ), | ||||
|         ) | ||||
|  | ||||
|     def test_choices_constuctor(self): | ||||
|     def test_choices_constructor(self): | ||||
|         widget = Select(choices=[(1, 1), (2, 2), (3, 3)]) | ||||
|         self.check_html(widget, 'num', 2, html=( | ||||
|             """<select name="num"> | ||||
|   | ||||
| @@ -6,7 +6,7 @@ from .models import Article, Reporter, Writer | ||||
|  | ||||
|  | ||||
| class M2MIntermediaryTests(TestCase): | ||||
|     def test_intermeiary(self): | ||||
|     def test_intermediary(self): | ||||
|         r1 = Reporter.objects.create(first_name="John", last_name="Smith") | ||||
|         r2 = Reporter.objects.create(first_name="Jane", last_name="Doe") | ||||
|  | ||||
|   | ||||
| @@ -80,7 +80,7 @@ class MigrateTests(MigrationTestBase): | ||||
|             call_command('migrate', app_label='unmigrated_app_syncdb') | ||||
|  | ||||
|     @override_settings(MIGRATION_MODULES={'migrations': 'migrations.test_migrations_clashing_prefix'}) | ||||
|     def test_ambigious_prefix(self): | ||||
|     def test_ambiguous_prefix(self): | ||||
|         msg = ( | ||||
|             "More than one migration matches 'a' in app 'migrations'. Please " | ||||
|             "be more specific." | ||||
|   | ||||
| @@ -55,7 +55,7 @@ class SerializerRegistrationTests(SimpleTestCase): | ||||
|             serializers.unregister_serializer("nonsense") | ||||
|  | ||||
|     def test_builtin_serializers(self): | ||||
|         "Requesting a list of serializer formats popuates the registry" | ||||
|         "Requesting a list of serializer formats populates the registry" | ||||
|         all_formats = set(serializers.get_serializer_formats()) | ||||
|         public_formats = set(serializers.get_public_serializer_formats()) | ||||
|  | ||||
|   | ||||
| @@ -292,7 +292,7 @@ class DummyBackendTest(unittest.TestCase): | ||||
| class AliasedDefaultTestSetupTest(unittest.TestCase): | ||||
|     def test_setup_aliased_default_database(self): | ||||
|         """ | ||||
|         setup_datebases() doesn't fail when 'default' is aliased | ||||
|         setup_databases() doesn't fail when 'default' is aliased | ||||
|         """ | ||||
|         tested_connections = db.ConnectionHandler({ | ||||
|             'default': { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user