mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix test assertation
This commit is contained in:
parent
d17af9eae7
commit
2f739bfbfa
@ -83,7 +83,7 @@ class PluginTagTests(TestCase):
|
|||||||
def test_tag_safe_url(self):
|
def test_tag_safe_url(self):
|
||||||
"""test that the safe url tag works expected"""
|
"""test that the safe url tag works expected"""
|
||||||
# right url
|
# right url
|
||||||
self.assertEqual(plugin_tags.safe_url('index'), '/index')
|
self.assertEqual(plugin_tags.safe_url('api-plugin-install'), '/api/plugin/install/')
|
||||||
# wrong url
|
# wrong url
|
||||||
self.assertEqual(plugin_tags.safe_url('indexas'), None)
|
self.assertEqual(plugin_tags.safe_url('indexas'), None)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user