Skip to content

Commit a6be00e

Browse files
authored
Merge pull request adobe-apiplatform#23 from sakonduri/add_stray
Added test_add_stray to validate add_stray method from rules.py file
2 parents e01fb09 + 319727e commit a6be00e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_rules.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,3 +246,10 @@ def test_create():
246246
def test_parse():
247247
result = AdobeGroup._parse('qualified_name')
248248
assert result == ('qualified_name', None)
249+
250+
def test_add_stray(rule_processor):
251+
user_key_mock_data = 'federatedID,[email protected],'
252+
removed_groups_mock_data = {'aishtest'}
253+
rule_processor.stray_key_map = {None: {}}
254+
rule_processor.add_stray(None, user_key_mock_data, removed_groups_mock_data)
255+
assert rule_processor.stray_key_map[None][user_key_mock_data] == removed_groups_mock_data

0 commit comments

Comments
 (0)