Skip to content

Commit 1b1f1e5

Browse files
committed
Add email attribute to kept attributes (#62)
1 parent e363b0e commit 1b1f1e5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/unit/test_operations.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,12 @@ def test_pseudonymize_deletes_non_name_attributes_apart_from_role_and_type(self)
183183
graph = operations.pseudonymize(graph)
184184

185185
agent = next(graph.get_records(ProvAgent))
186-
expected_attributes = [PROV_ROLE, PROV_TYPE, qualified_name("name")]
186+
expected_attributes = [
187+
PROV_ROLE,
188+
PROV_TYPE,
189+
qualified_name("name"),
190+
qualified_name("email"),
191+
]
187192
assert all(
188193
[(attr in expected_attributes) for (attr, _) in agent.extra_attributes]
189194
)

0 commit comments

Comments
 (0)