Make ALL the things consistent.
Signed-off-by: Stephen Finucane <stephen@that.guru>
</script>
<h1>{{ submission.name }}
-{% include "patchwork/download_buttons.html" %}
+{% include "patchwork/download-buttons.html" %}
</h1>
<table class="patchmeta">
{% if submission.diff %}
<h2>
Patch
- {% include "patchwork/download_buttons.html" %}
+ {% include "patchwork/download-buttons.html" %}
</h2>
<div id="patch" class="patch">
def test_post_empty(self):
response = self.client.post(reverse('mail-settings'), {'email': ''})
self.assertEqual(response.status_code, 200)
- self.assertTemplateUsed(response, 'patchwork/mail-form.html')
+ self.assertTemplateUsed(response, 'patchwork/mail.html')
self.assertFormError(response, 'form', 'email',
'This field is required.')
def test_post_invalid(self):
response = self.client.post(reverse('mail-settings'), {'email': 'foo'})
self.assertEqual(response.status_code, 200)
- self.assertTemplateUsed(response, 'patchwork/mail-form.html')
+ self.assertTemplateUsed(response, 'patchwork/mail.html')
self.assertFormError(response, 'form', 'email', error_strings['email'])
def test_post_optin(self):
def test_registration_form(self):
response = self.client.get('/register/')
self.assertEqual(response.status_code, 200)
- self.assertTemplateUsed(response, 'patchwork/registration_form.html')
+ self.assertTemplateUsed(response, 'patchwork/registration.html')
def test_blank_fields(self):
for field in ['username', 'email', 'password']:
'form': form,
}
- return render(request, 'patchwork/mail-form.html', context)
+ return render(request, 'patchwork/mail.html', context)
def optout_confirm(request, conf):
context['form'] = form
- return render(request, 'patchwork/registration_form.html', context)
+ return render(request, 'patchwork/registration.html', context)
def register_confirm(request, conf):