Skip to content

Commit

Permalink
add status.description assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Sep 16, 2021
1 parent 26f5d32 commit 8eda7b6
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ def _test_method(self, method):
span.name, "HelloWorldResource.on_{0}".format(method.lower())
)
self.assertEqual(span.status.status_code, StatusCode.UNSET)
self.assertEqual(
span.status.description,
None,
)
self.assertSpanHasAttributes(
span,
{
Expand All @@ -113,6 +117,10 @@ def test_404(self):
span = spans[0]
self.assertEqual(span.name, "HTTP GET")
self.assertEqual(span.status.status_code, StatusCode.ERROR)
self.assertEqual(
span.status.description,
"NotFound",
)
self.assertSpanHasAttributes(
span,
{
Expand Down

0 comments on commit 8eda7b6

Please sign in to comment.