mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-17 13:38:03 +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()
|
addr.save()
|
||||||
|
|
||||||
if email:
|
if email:
|
||||||
# Explicitely asked
|
# Explicitly asked
|
||||||
email.photo = self
|
email.photo = self
|
||||||
email.save()
|
email.save()
|
||||||
|
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user