Skip to content

Commit

Permalink
Fixed after CR
Browse files Browse the repository at this point in the history
  • Loading branch information
shalevr committed Nov 28, 2022
1 parent daaebee commit 15dfa47
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions opentelemetry-sdk/tests/resources/test_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import uuid
from logging import ERROR
from unittest import mock
from urllib import parse

from opentelemetry.sdk import resources

Expand Down Expand Up @@ -501,6 +502,15 @@ def test_multiple_with_url_decode(self):
detector.detect(),
resources.Resource({"key": "value test\n", "key2": "value+ 2"}),
)
self.assertEqual(
detector.detect(),
resources.Resource(
{
"key": parse.unquote("value%20test%0A"),
"key2": parse.unquote("value+%202"),
}
),
)

@mock.patch.dict(
os.environ,
Expand Down

0 comments on commit 15dfa47

Please sign in to comment.