diff options
| author | Tim Graham <timograham@gmail.com> | 2026-02-06 11:06:17 -0500 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-02-10 16:04:24 -0500 |
| commit | d007fcf7291cc3c24d4545e23c759bde22b6a8a6 (patch) | |
| tree | 0ed3491b9e2e0d61694eff2535c99e1eded34b27 /tests/admin_utils | |
| parent | 64a4d8ad005721b17fafd3399bdf49d7d0f94455 (diff) | |
Modified tests to format PKs with %s rather than %d.
It's how Django formats values internally and makes tests compatible
with databases that use non-integer primary keys.
Diffstat (limited to 'tests/admin_utils')
| -rw-r--r-- | tests/admin_utils/test_logentry.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_utils/test_logentry.py b/tests/admin_utils/test_logentry.py index 37d13d24bd..43cc281335 100644 --- a/tests/admin_utils/test_logentry.py +++ b/tests/admin_utils/test_logentry.py @@ -224,7 +224,7 @@ class LogEntryTests(TestCase): "admin:admin_utils_article_change", args=(quote(self.a1.pk),) ) self.assertEqual(logentry.get_admin_url(), expected_url) - self.assertIn("article/%d/change/" % self.a1.pk, logentry.get_admin_url()) + self.assertIn("article/%s/change/" % self.a1.pk, logentry.get_admin_url()) logentry.content_type.model = "nonexistent" self.assertIsNone(logentry.get_admin_url()) |
