Show More
@@ -11,7 +11,7 b'' | |||||
11 |
|
11 | |||
12 | <div class="thread"> |
|
12 | <div class="thread"> | |
13 | {% for post in thread.get_top_level_replies %} |
|
13 | {% for post in thread.get_top_level_replies %} | |
14 |
{% post_view post moderator=moderator |
|
14 | {% post_view post moderator=moderator mode_tree=True %} | |
15 | {% endfor %} |
|
15 | {% endfor %} | |
16 | </div> |
|
16 | </div> | |
17 |
|
17 |
@@ -15,7 +15,7 b' class ApiTest(TestCase):' | |||||
15 | tags=[tag]) |
|
15 | tags=[tag]) | |
16 |
|
16 | |||
17 | req = MockRequest() |
|
17 | req = MockRequest() | |
18 |
req. |
|
18 | req.POST['thread'] = opening_post.id | |
19 | req.POST['uids'] = opening_post.uid |
|
19 | req.POST['uids'] = opening_post.uid | |
20 | # Check the exact timestamp post was added |
|
20 | # Check the exact timestamp post was added | |
21 | empty_response = api.api_get_threaddiff(req) |
|
21 | empty_response = api.api_get_threaddiff(req) | |
@@ -29,7 +29,7 b' class ApiTest(TestCase):' | |||||
29 | text='[post]%d[/post]\ntext' % opening_post.id, |
|
29 | text='[post]%d[/post]\ntext' % opening_post.id, | |
30 | thread=opening_post.get_thread()) |
|
30 | thread=opening_post.get_thread()) | |
31 | req = MockRequest() |
|
31 | req = MockRequest() | |
32 |
req. |
|
32 | req.POST['thread'] = opening_post.id | |
33 | req.POST['uids'] = ' '.join(uids) |
|
33 | req.POST['uids'] = ' '.join(uids) | |
34 | # Check the timestamp before post was added |
|
34 | # Check the timestamp before post was added | |
35 | response = api.api_get_threaddiff(req) |
|
35 | response = api.api_get_threaddiff(req) | |
@@ -40,7 +40,7 b' class ApiTest(TestCase):' | |||||
40 | # Reload post to get the new UID |
|
40 | # Reload post to get the new UID | |
41 | opening_post = Post.objects.get(id=opening_post.id) |
|
41 | opening_post = Post.objects.get(id=opening_post.id) | |
42 | req = MockRequest() |
|
42 | req = MockRequest() | |
43 |
req. |
|
43 | req.POST['thread'] = opening_post.id | |
44 | req.POST['uids'] = ' '.join([opening_post.uid, reply.uid]) |
|
44 | req.POST['uids'] = ' '.join([opening_post.uid, reply.uid]) | |
45 | empty_response = api.api_get_threaddiff(req) |
|
45 | empty_response = api.api_get_threaddiff(req) | |
46 | diff = simplejson.loads(empty_response.content) |
|
46 | diff = simplejson.loads(empty_response.content) |
General Comments 0
You need to be logged in to leave comments.
Login now