Quellcode durchsuchen

Fix test for URL validator

Change to products URL was not picked up here.
master
David Winterbottom vor 13 Jahren
Ursprung
Commit
31bd304f5a
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2
    2
      tests/unit/core_tests.py

+ 2
- 2
tests/unit/core_tests.py Datei anzeigen

107
             v('/invalid/?q=test')  # Query strings shouldn't affect validation
107
             v('/invalid/?q=test')  # Query strings shouldn't affect validation
108
 
108
 
109
         try:
109
         try:
110
-            v('products/')
110
+            v('catalogue/')
111
         except ValidationError:
111
         except ValidationError:
112
             self.fail('ExtendedURLValidator raised ValidationError'
112
             self.fail('ExtendedURLValidator raised ValidationError'
113
                       'unexpectedly!')
113
                       'unexpectedly!')
114
 
114
 
115
         with self.assertRaises(ValidationError):
115
         with self.assertRaises(ValidationError):
116
-            v('/products')  # Missing the / is bad
116
+            v('/catalogue')  # Missing the / is bad
117
 
117
 
118
         FlatPage(title='test page', url='/test/page/').save()
118
         FlatPage(title='test page', url='/test/page/').save()
119
         try:
119
         try:

Laden…
Abbrechen
Speichern