Files
nixpkgs/pkgs/development/python-modules/django/6.x/fix-flaky-tests.patch
Vladimír Čunát fcf5061a6f python3Packages.django: fix an annoying test
Tested on staging-next-26.05 where this broke now.
2026-10-05 06:49:19 +02:00

11 lines
490 B
Diff

The "haha" string is too likely to appear e.g. in /nix/store hashes.
--- a/tests/view_tests/tests/test_debug.py
+++ b/tests/view_tests/tests/test_debug.py
@@ -92 +92 @@
- "file_data.txt": SimpleUploadedFile("file_data.txt", b"haha"),
+ "file_data.txt": SimpleUploadedFile("file_data.txt", b"hahaXGEENJAHSM"),
@@ -97 +97 @@
- self.assertNotContains(response, "haha", status_code=500)
+ self.assertNotContains(response, "hahaXGEENJAHSM", status_code=500)