mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-16 21:18:02 +00:00
Fix spelling mistakes (reported by 'codespell')
Sadly "codespell" does not seem to be available in Centos, thus it is not enabled in the gitlab CI.
This commit is contained in:
@@ -201,7 +201,7 @@ class Photo(BaseAccountModel):
|
||||
addr.save()
|
||||
|
||||
if email:
|
||||
# Explicitely asked
|
||||
# Explicitly asked
|
||||
email.photo = self
|
||||
email.save()
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ class Tester(TestCase): # pylint: disable=too-many-public-methods
|
||||
username = random_string()
|
||||
password = random_string()
|
||||
email = '%s@%s.%s' % (username, random_string(), random_string(2))
|
||||
# Dunno why random tld doens't work, but I'm too lazy now to investigate
|
||||
# Dunno why random tld doesn't work, but I'm too lazy now to investigate
|
||||
openid = 'http://%s.%s.%s/' % (username, random_string(), 'org')
|
||||
|
||||
def login(self):
|
||||
@@ -375,7 +375,7 @@ class Tester(TestCase): # pylint: disable=too-many-public-methods
|
||||
self.assertEqual(
|
||||
response.status_code,
|
||||
200,
|
||||
'deleting photo doesnt work?')
|
||||
'deleting photo does not work?')
|
||||
self.assertEqual(
|
||||
str(list(response.context[0]['messages'])[0]),
|
||||
'Photo deleted successfully',
|
||||
|
||||
@@ -318,7 +318,7 @@ class ImportPhotoView(SuccessMessageMixin, TemplateView):
|
||||
)
|
||||
try:
|
||||
if libravatar_service_url:
|
||||
# if it doesn't work, it will be catched by except
|
||||
# if it doesn't work, it will be caught by except
|
||||
urlopen(libravatar_service_url)
|
||||
context['photos'].append({
|
||||
'service_url': libravatar_service_url,
|
||||
|
||||
Reference in New Issue
Block a user