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:
Lars Kruse
2018-07-27 03:13:53 +02:00
parent 4646a9ce7a
commit a06b61b054
3 changed files with 4 additions and 4 deletions

View File

@@ -201,7 +201,7 @@ class Photo(BaseAccountModel):
addr.save() addr.save()
if email: if email:
# Explicitely asked # Explicitly asked
email.photo = self email.photo = self
email.save() email.save()

View File

@@ -37,7 +37,7 @@ class Tester(TestCase): # pylint: disable=too-many-public-methods
username = random_string() username = random_string()
password = random_string() password = random_string()
email = '%s@%s.%s' % (username, random_string(), random_string(2)) 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') openid = 'http://%s.%s.%s/' % (username, random_string(), 'org')
def login(self): def login(self):
@@ -375,7 +375,7 @@ class Tester(TestCase): # pylint: disable=too-many-public-methods
self.assertEqual( self.assertEqual(
response.status_code, response.status_code,
200, 200,
'deleting photo doesnt work?') 'deleting photo does not work?')
self.assertEqual( self.assertEqual(
str(list(response.context[0]['messages'])[0]), str(list(response.context[0]['messages'])[0]),
'Photo deleted successfully', 'Photo deleted successfully',

View File

@@ -318,7 +318,7 @@ class ImportPhotoView(SuccessMessageMixin, TemplateView):
) )
try: try:
if libravatar_service_url: 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) urlopen(libravatar_service_url)
context['photos'].append({ context['photos'].append({
'service_url': libravatar_service_url, 'service_url': libravatar_service_url,