Skip to content

Commit

Permalink
Improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lmazuel committed Jan 6, 2020
1 parent 56f105d commit 0e486a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ async def test_used(self):
assert not parent.children[0].children
assert parent.children[1].name == "MockClient.get_foo"
assert not parent.children[1].children
assert parent.children[2].name == "MockClient.get_foo"
assert not parent.children[2].children


@pytest.mark.asyncio
async def test_span_merge_span(self):
Expand Down
2 changes: 2 additions & 0 deletions sdk/core/azure-core/tests/test_tracing_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ def test_used(self):
assert not parent.children[0].children
assert parent.children[1].name == "MockClient.get_foo"
assert not parent.children[1].children
assert parent.children[2].name == "MockClient.get_foo"
assert not parent.children[2].children

def test_span_merge_span(self):
with FakeSpan(name="parent") as parent:
Expand Down

0 comments on commit 0e486a7

Please sign in to comment.