Skip to content

Commit

Permalink
fix tests for falcon 1 & 2
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipNikolovski committed Aug 9, 2024
1 parent 2d68dc5 commit 228897d
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,16 @@ def test_500(self):
self.assertEqual(span.name, "GET /error")
self.assertFalse(span.status.is_ok)
self.assertEqual(span.status.status_code, StatusCode.ERROR)
self.assertEqual(span.status.description, None)

_parsed_falcon_version = package_version.parse(_falcon_version)
if _parsed_falcon_version < package_version.parse("3.0.0"):
self.assertEqual(
span.status.description,
"NameError: name 'non_existent_var' is not defined",
)
else:
self.assertEqual(span.status.description, None)

self.assertSpanHasAttributes(
span,
{
Expand Down

0 comments on commit 228897d

Please sign in to comment.