Skip to content

Commit d878b31

Browse files
committed
fix unit test, and bumpt to v0.6
1 parent 79d0137 commit d878b31

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dj_elastictranscoder/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.5'
1+
__version__ = '0.6'

dj_elastictranscoder/tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_onprogress(self):
8383
with open(os.path.join(FIXTURE_DIRS, 'onprogress.json')) as f:
8484
content = f.read()
8585

86-
resp = self.client.post('/sns_endpoint/', content, content_type="application/json")
86+
resp = self.client.post('/endpoint/', content, content_type="application/json")
8787
self.assertEqual(resp.status_code, 200)
8888
self.assertEqual(resp.content, 'Done')
8989

@@ -94,7 +94,7 @@ def test_onerror(self):
9494
with open(os.path.join(FIXTURE_DIRS, 'onerror.json')) as f:
9595
content = f.read()
9696

97-
resp = self.client.post('/sns_endpoint/', content, content_type="application/json")
97+
resp = self.client.post('/endpoint/', content, content_type="application/json")
9898
self.assertEqual(resp.status_code, 200)
9999
self.assertEqual(resp.content, 'Done')
100100

@@ -106,7 +106,7 @@ def test_oncomplete(self):
106106
with open(os.path.join(FIXTURE_DIRS, 'oncomplete.json')) as f:
107107
content = f.read()
108108

109-
resp = self.client.post('/sns_endpoint/', content, content_type="application/json")
109+
resp = self.client.post('/endpoint/', content, content_type="application/json")
110110
self.assertEqual(resp.status_code, 200)
111111
self.assertEqual(resp.content, 'Done')
112112

dj_elastictranscoder/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from django.conf.urls import url, patterns
22

33
urlpatterns = patterns('dj_elastictranscoder.views',
4-
url(r'^endpoint/$', 'sns_endpoint'),
4+
url(r'^endpoint/$', 'endpoint'),
55
)

dj_elastictranscoder/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
transcode_oncomplete
1010
)
1111

12-
def sns_endpoint(request):
12+
def endpoint(request):
1313
"""
1414
Receive SNS notification
1515
"""

0 commit comments

Comments
 (0)