mypy
This commit is contained in:
parent
2d2e8f0e34
commit
7eb2bcee15
1 changed files with 2 additions and 0 deletions
|
|
@ -85,6 +85,7 @@ def fetch_normalized_spans():
|
||||||
traces = []
|
traces = []
|
||||||
for trace_obj in fetch_traces():
|
for trace_obj in fetch_traces():
|
||||||
trace = trace_obj.export()
|
trace = trace_obj.export()
|
||||||
|
assert trace
|
||||||
assert trace.pop("object") == "trace"
|
assert trace.pop("object") == "trace"
|
||||||
assert trace.pop("id").startswith("trace_")
|
assert trace.pop("id").startswith("trace_")
|
||||||
trace = {k: v for k, v in trace.items() if v is not None}
|
trace = {k: v for k, v in trace.items() if v is not None}
|
||||||
|
|
@ -96,6 +97,7 @@ def fetch_normalized_spans():
|
||||||
|
|
||||||
for span_obj in fetch_ordered_spans():
|
for span_obj in fetch_ordered_spans():
|
||||||
span = span_obj.export()
|
span = span_obj.export()
|
||||||
|
assert span
|
||||||
assert span.pop("object") == "trace.span"
|
assert span.pop("object") == "trace.span"
|
||||||
assert span.pop("id").startswith("span_")
|
assert span.pop("id").startswith("span_")
|
||||||
assert datetime.fromisoformat(span.pop("started_at"))
|
assert datetime.fromisoformat(span.pop("started_at"))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue