Skip to content

Commit

Permalink
Fix tests broken with new max project size
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaya-Cout committed Feb 11, 2025
1 parent 9985bd3 commit 594d91e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workshop/api/tests/tests_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,11 +659,11 @@ def test_scripts_invalid(self):
]

# Generate the content that is too big based on the payload size
content = "a" * (100 * 1024 - len(json.dumps(files)) + 1)
content = "a" * (1024 * 1024 - len(json.dumps(files)) + 1)
files[0]['content'] = content

# Assert that the payload is the correct size
self.assertEqual(len(json.dumps(files)), 100 * 1024 + 1)
self.assertEqual(len(json.dumps(files)), 1024 * 1024 + 1)

response = self.client.post(
"/scripts/",
Expand Down

0 comments on commit 594d91e

Please sign in to comment.