@@ -5,4 +5,4 @@ python: | |||||
# command to install dependencies | # command to install dependencies | ||||
install: pip install -r requirements.txt | install: pip install -r requirements.txt | ||||
# command to run tests | # command to run tests | ||||
script: python manage.py test core api | |||||
script: python manage.py test core api pins |
@@ -11,7 +11,6 @@ | |||||
<div id="form" class="span6 offset3"> | <div id="form" class="span6 offset3"> | ||||
<h1>Login</h1> | <h1>Login</h1> | ||||
<form action="{% url core:login %}" method="post" class="form-horizontal"> | <form action="{% url core:login %}" method="post" class="form-horizontal"> | ||||
{% csrf_token %} | |||||
{% for field in form %} | {% for field in form %} | ||||
{% bootstrap_field field %} | {% bootstrap_field field %} | ||||
{% endfor %} | {% endfor %} | ||||
@@ -11,7 +11,6 @@ | |||||
<div id="form" class="span6 offset3"> | <div id="form" class="span6 offset3"> | ||||
<h1>Register</h1> | <h1>Register</h1> | ||||
<form action="{% url core:register %}" method="post" class="form-horizontal"> | <form action="{% url core:register %}" method="post" class="form-horizontal"> | ||||
{% csrf_token %} | |||||
{% for field in form %} | {% for field in form %} | ||||
{% bootstrap_field field %} | {% bootstrap_field field %} | ||||
{% endfor %} | {% endfor %} | ||||
@@ -12,7 +12,6 @@ | |||||
<h1>New Pin</h1> | <h1>New Pin</h1> | ||||
{{ form.non_field_errors }} | {{ form.non_field_errors }} | ||||
<form enctype="multipart/form-data" action="{% url pins:new-pin %}" method="post" class="form-horizontal"> | <form enctype="multipart/form-data" action="{% url pins:new-pin %}" method="post" class="form-horizontal"> | ||||
{% csrf_token %} | |||||
{% for field in form %} | {% for field in form %} | ||||
{% bootstrap_field field %} | {% bootstrap_field field %} | ||||
{% endfor %} | {% endfor %} | ||||
@@ -5,9 +5,7 @@ | |||||
<h3>New Pin</h3> | <h3>New Pin</h3> | ||||
</div> | </div> | ||||
<form enctype="multipart/form-data" action="{% url pins:new-pin %}" method="post" class="form-horizontal"> | <form enctype="multipart/form-data" action="{% url pins:new-pin %}" method="post" class="form-horizontal"> | ||||
{% csrf_token %} | |||||
<div class="modal-body"> | <div class="modal-body"> | ||||
{% csrf_token %} | |||||
{% for field in form %} | {% for field in form %} | ||||
{% bootstrap_field field %} | {% bootstrap_field field %} | ||||
{% endfor %} | {% endfor %} | ||||
@@ -33,7 +33,7 @@ class NewPinTest(TestCase): | |||||
'url': 'https://github.com/overshard/pinry/raw/master/' | 'url': 'https://github.com/overshard/pinry/raw/master/' | ||||
'screenshot.png', | 'screenshot.png', | ||||
}) | }) | ||||
self.assertEqual(response.status_code, 302) | |||||
self.assertEqual(response.status_code, 200) | |||||
def test_new_pin_invalid_protocol(self): | def test_new_pin_invalid_protocol(self): | ||||
response = self.client.post(self.url, { | response = self.client.post(self.url, { | ||||
@@ -40,7 +40,6 @@ MIDDLEWARE_CLASSES = ( | |||||
'django.contrib.sessions.middleware.SessionMiddleware', | 'django.contrib.sessions.middleware.SessionMiddleware', | ||||
'django.contrib.auth.middleware.AuthenticationMiddleware', | 'django.contrib.auth.middleware.AuthenticationMiddleware', | ||||
'django.contrib.messages.middleware.MessageMiddleware', | 'django.contrib.messages.middleware.MessageMiddleware', | ||||
'django.middleware.csrf.CsrfViewMiddleware', | |||||
'pinry.core.middleware.Public', | 'pinry.core.middleware.Public', | ||||
) | ) | ||||
TEMPLATE_CONTEXT_PROCESSORS = ( | TEMPLATE_CONTEXT_PROCESSORS = ( | ||||