-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
datadog: fix test_memory_trace_client_test2.py
- Loading branch information
Showing
5 changed files
with
64 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
automon/integrations/openTelemetryWrapper/test/test_memory_trace_client.py
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
automon/integrations/openTelemetryWrapper/test/test_memory_trace_client_test1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import unittest | ||
import asyncio | ||
|
||
from automon.integrations.openTelemetryWrapper import OpenTelemetryClient | ||
|
||
|
||
class MyTestCase(unittest.TestCase): | ||
client = OpenTelemetryClient() | ||
|
||
def test_something(self): | ||
self.assertTrue(asyncio.run( | ||
self.client.test())) | ||
|
||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |
21 changes: 21 additions & 0 deletions
21
automon/integrations/openTelemetryWrapper/test/test_memory_trace_client_test2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import unittest | ||
import asyncio | ||
|
||
from automon.integrations.openTelemetryWrapper import OpenTelemetryClient | ||
|
||
|
||
class MyTestCase(unittest.TestCase): | ||
client = OpenTelemetryClient() | ||
|
||
def test_something(self): | ||
self.assertTrue(asyncio.run( | ||
self.client.test2())) | ||
|
||
spans = asyncio.run( | ||
self.client.get_finished_spans()) | ||
|
||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |