From 10a683ecf4902e23cbde7362b54564cdc146ff20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauritz=20Skog=C3=B8y?= Date: Thu, 27 Mar 2025 13:36:20 +0100 Subject: [PATCH] Test: added skelekton for tests we need to write --- backend/tests/test_workout_file_upload.py | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/backend/tests/test_workout_file_upload.py b/backend/tests/test_workout_file_upload.py index 9cc6e8c..3f04062 100644 --- a/backend/tests/test_workout_file_upload.py +++ b/backend/tests/test_workout_file_upload.py @@ -28,6 +28,7 @@ def test_upload_multiple_valid_pdf_files(self): ) # Make the POST request with files + print(self.url) response = self.client.post(self.url, files, format='multipart') # Check if the response is successful @@ -36,3 +37,28 @@ def test_upload_multiple_valid_pdf_files(self): # Optionally, check that the files have been created in the database workout_files = WorkoutFile.objects.all() self.assertEqual(workout_files.count(), 8) + + def test_uploading_file_of_maximum_size(self): + #Logic for testing uploading of files with exceeding size limit + pass + + def test_uploading_maximum_number_of_files(self): + #Logic for testing uploading of maximum number of files + pass + + + def test_uploading_file_with_size_just_above_limit(self): + #Logic for testing uploading of files with size just above limit + pass + + def test_uploading_too_many_files(self): + #Logic for testing uploading of too many files + pass + + def test_uploading_invalid_file_type(self): + #Logic for testing uploading of invalid file types + pass + + + +