You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nautobot version (Docker tag too if applicable): 1.5.7
Python version: any
Database platform, version: any
Middleware(s): standard
Steps to Reproduce
Create a model whose display or __str__ representation contains special characters such as ", <, >
Create standard Nautobot views for this model
Use Nautobot's ViewTestCases to test this model
Expected Behavior
Tests to pass
Observed Behavior
Test test_get_object_with_permission fails because it expects the literal string representation of the object to appear in the HTML response, not accounting for HTML escapes ", <, >:
AssertionError: 'Metadata for Location "Floor 1"' not found in
...
Metadata for Location "Floor 1"
...
The text was updated successfully, but these errors were encountered:
Environment
Steps to Reproduce
display
or__str__
representation contains special characters such as"
,<
,>
ViewTestCases
to test this modelExpected Behavior
Tests to pass
Observed Behavior
Test
test_get_object_with_permission
fails because it expects the literal string representation of the object to appear in the HTML response, not accounting for HTML escapes"
,<
,>
:The text was updated successfully, but these errors were encountered: