Skip to content

Commit 6322ad0

Browse files
add missing code.namespace assertions
1 parent f20dfc6 commit 6322ad0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/integrations/sqlalchemy/test_sqlalchemy.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,10 @@ class Person(Base):
820820

821821
assert type(attributes.get(SPANDATA.CODE_LINE_NUMBER)) == int
822822
assert attributes.get(SPANDATA.CODE_LINE_NUMBER) > 0
823+
assert (
824+
attributes.get(SPANDATA.CODE_NAMESPACE)
825+
== "sqlalchemy_helpers.helpers"
826+
)
823827
assert (
824828
attributes.get(SPANDATA.CODE_FILE_PATH)
825829
== "sqlalchemy_helpers/helpers.py"
@@ -1107,6 +1111,10 @@ def __exit__(self, type, value, traceback):
11071111

11081112
assert type(attributes.get(SPANDATA.CODE_LINE_NUMBER)) == int
11091113
assert attributes.get(SPANDATA.CODE_LINE_NUMBER) > 0
1114+
assert (
1115+
attributes.get(SPANDATA.CODE_NAMESPACE)
1116+
== "tests.integrations.sqlalchemy.test_sqlalchemy"
1117+
)
11101118
assert attributes.get(SPANDATA.CODE_FILE_PATH).endswith(
11111119
"tests/integrations/sqlalchemy/test_sqlalchemy.py"
11121120
)

0 commit comments

Comments
 (0)