Skip to content

Commit

Permalink
Test: added skelekton for tests we need to write
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritzs committed Mar 27, 2025
1 parent 91fc8da commit 10a683e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions backend/tests/test_workout_file_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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




0 comments on commit 10a683e

Please sign in to comment.