Skip to content

Commit 0fe01f6

Browse files
committed
Try to fix tests
1 parent 317ee7d commit 0fe01f6

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

readthedocs/api/v3/tests/responses/projects-detail.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"urls": {
3030
"build": "https://readthedocs.org/projects/project/builds/1/",
3131
"project": "https://readthedocs.org/projects/project/",
32-
"version": "https://readthedocs.org/dashboard/project/version/v1.0/"
32+
"version": "https://readthedocs.org/dashboard/project/version/v1.0/edit/"
3333
},
3434
"project": "project",
3535
"state": {

readthedocs/rtd_tests/tests/test_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def test_version_delete_html(self):
9999
self.assertRedirectToLogin(response)
100100

101101
def test_version_detail(self):
102-
response = self.client.get('/dashboard/pip/version/0.8.1/')
102+
response = self.client.get('/dashboard/pip/version/0.8.1/edit/')
103103
self.assertRedirectToLogin(response)
104104

105105
def test_project_delete(self):

readthedocs/templates/projects/project_version_submit.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
<p>
44
<input style="display: inline;" type="submit" value="{% trans "Save" %}">
5-
{% trans "or" %}
6-
<a href="{% url "wipe_version" version.project.slug version.slug %}">{% trans "wipe "%}</a>
5+
{% if version %}
6+
{% trans "or" %}
7+
<a href="{% url "wipe_version" version.project.slug version.slug %}">{% trans "wipe "%}</a>
8+
{% endif %}
79
</p>

0 commit comments

Comments
 (0)