Skip to content

Commit

Permalink
Update test case for non-Latin character slug generation
Browse files Browse the repository at this point in the history
  • Loading branch information
slyapustin committed Mar 2, 2025
1 parent 02733c4 commit f4d2afb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_classified/tests/test_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,12 @@ def test_group_slug_autocreated(self):
)

self.assertEqual(new_group.slug, 'some-cool-staff')

# Test with non-Latin characters
arabic_group = Group.objects.create(
title='بيت للأجار',
section=section
)

# The slug should preserve the Arabic characters
self.assertEqual(arabic_group.slug, 'بيت-للأجار')

0 comments on commit f4d2afb

Please sign in to comment.