Skip to content

Commit

Permalink
improve scope test
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Aug 2, 2022
1 parent 7855090 commit 3c4f7a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions semantic-conventions/src/tests/data/yaml/scope.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
groups:
- id: scope
prefix: scope
- id: scope-id
prefix: scopeprefix
type: scope
brief: >
Instrumentation Scope attributes
attributes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -675,13 +675,14 @@ def test_scope_attribute(self):
self.assertEqual(len(semconv.models), 1)

expected = {
"id": "scope",
"prefix": "scope",
"id": "scope-id",
"prefix": "scopeprefix",
"type": "scope",
"extends": "",
"brief": "Instrumentation Scope attributes",
"n_constraints": 0,
"attributes": [
"scope.short_name",
"scopeprefix.short_name",
],
}
self.semantic_convention_check(list(semconv.models.values())[0], expected)
Expand Down

0 comments on commit 3c4f7a7

Please sign in to comment.