Skip to content

Commit ce08aef

Browse files
committed
Removed print statement
1 parent 7c5e6f7 commit ce08aef

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

appointment/tests/test_services.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,6 @@ def get_next_weekday(d, weekday):
416416
if days_ahead <= 0: # Target day already happened this week
417417
days_ahead += 7
418418
next_day = d + datetime.timedelta(days_ahead)
419-
print(f"Day asked is {days_of_week[weekday]}, which is {next_day.strftime('%Y-%m-%d')}")
420419
return next_day
421420

422421

appointment/tests/test_views.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,6 @@ def test_update_day_off_unauthorized_user(self):
652652
url = reverse('appointment:update_day_off', args=[self.day_off.id])
653653
response = self.client.post(url, {'start_date': '2050-01-01', 'end_date': '2050-01-01',
654654
'description': 'Trying unauthorized update'}, 'json')
655-
print(f"response: {response}")
656655
self.assertEqual(response.status_code, 403) # Expect forbidden error
657656

658657
def test_update_nonexistent_day_off(self):
@@ -703,7 +702,6 @@ def test_get_request_with_valid_token(self):
703702
"in database")
704703
response = self.client.get(self.valid_link)
705704
self.assertEqual(response.status_code, 200)
706-
print(f"response: {response}")
707705
self.assertContains(response, "form")
708706
self.assertNotContains(response, "The password reset link is invalid or has expired.")
709707

@@ -729,9 +727,6 @@ def test_get_request_with_invalid_token(self):
729727
response = self.client.get(invalid_token_link, follow=True)
730728
self.assertEqual(response.status_code, 200)
731729
messages_ = list(get_messages(response.wsgi_request))
732-
print(f"messages: {messages_}")
733-
for msg in messages_:
734-
print(f"message: {msg}")
735730
self.assertTrue(
736731
any(msg.message == _("The password reset link is invalid or has expired.") for msg in messages_))
737732

@@ -781,7 +776,6 @@ def test_valid_staff_member_selected(self):
781776
response_data = response.json()
782777
self.assertTrue(response_data['success'])
783778
self.assertEqual(response_data['message'], _('Successfully retrieved non-working days'))
784-
print(f"Response data: {response_data}")
785779
self.assertIn('non_working_days', response_data)
786780
self.assertTrue(isinstance(response_data['non_working_days'], list))
787781

appointment/views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,6 @@ def reschedule_appointment_submit(request):
567567
email=email, appointment_request=ar)
568568
return render(request, 'appointment/rescheduling_thank_you.html', context=context)
569569
else:
570-
print(f"form is invalid", form.errors)
571570
messages.error(request, _("There was an error in your submission. Please check the form and try again."))
572571
else:
573572
form = AppointmentRequestForm()

0 commit comments

Comments
 (0)