Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jonholdsworth committed Jul 3, 2024
1 parent ccf5ff1 commit bb25fe2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions signbank/video/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def test_upload_glossvideo(self):
response = self.client.post(reverse('video:upload_glossvideo_gloss'), {
'videofile': self.testfile, 'gloss': self.testgloss.pk, 'video_type': self.video_type.machine_value})
from pprint import pprint
print("DEBUG MARKER")
pprint(reverse('video:upload_glossvideo_gloss'))
pprint({'videofile': self.testfile, 'gloss': self.testgloss.pk, 'video_type': self.video_type.machine_value})
self.assertEqual(response.status_code, 302)
Expand Down
1 change: 1 addition & 0 deletions signbank/video/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def upload_glossvideo(request):
if request.method == 'POST':
form = GlossVideoForm(request.POST, request.FILES)
if form.is_valid():
print("UPLOAD_GLOSSVIDEO: FORM.ISVALID()")

videofile = form.cleaned_data['videofile']
glossvideo = GlossVideo(videofile=videofile)
Expand Down

0 comments on commit bb25fe2

Please sign in to comment.