@@ -18,58 +18,58 @@ def test_filter_by_provider():
1818 toolset = StackOneToolSet (api_key = "test_key" )
1919
2020 # Test matching providers
21- assert toolset ._filter_by_provider ("hris_list_employees " , ["hris " , "ats " ])
22- assert toolset ._filter_by_provider ("ats_create_job " , ["hris " , "ats " ])
21+ assert toolset ._filter_by_provider ("hibob_list_employees " , ["hibob " , "bamboohr " ])
22+ assert toolset ._filter_by_provider ("bamboohr_create_job " , ["hibob " , "bamboohr " ])
2323
2424 # Test non-matching providers
25- assert not toolset ._filter_by_provider ("crm_list_contacts " , ["hris " , "ats " ])
25+ assert not toolset ._filter_by_provider ("workday_list_contacts " , ["hibob " , "bamboohr " ])
2626
2727 # Test case-insensitive matching
28- assert toolset ._filter_by_provider ("HRIS_list_employees " , ["hris " ])
29- assert toolset ._filter_by_provider ("hris_list_employees " , ["HRIS " ])
28+ assert toolset ._filter_by_provider ("HIBOB_list_employees " , ["hibob " ])
29+ assert toolset ._filter_by_provider ("hibob_list_employees " , ["HIBOB " ])
3030
3131
3232def test_filter_by_action ():
3333 """Test action filtering with glob patterns"""
3434 toolset = StackOneToolSet (api_key = "test_key" )
3535
3636 # Test exact match
37- assert toolset ._filter_by_action ("hris_list_employees " , ["hris_list_employees " ])
37+ assert toolset ._filter_by_action ("hibob_list_employees " , ["hibob_list_employees " ])
3838
3939 # Test glob pattern
40- assert toolset ._filter_by_action ("hris_list_employees " , ["*_list_employees" ])
41- assert toolset ._filter_by_action ("ats_list_employees " , ["*_list_employees" ])
42- assert toolset ._filter_by_action ("hris_list_employees " , ["hris_ *" ])
43- assert toolset ._filter_by_action ("hris_create_employee " , ["hris_ *" ])
40+ assert toolset ._filter_by_action ("hibob_list_employees " , ["*_list_employees" ])
41+ assert toolset ._filter_by_action ("bamboohr_list_employees " , ["*_list_employees" ])
42+ assert toolset ._filter_by_action ("hibob_list_employees " , ["hibob_ *" ])
43+ assert toolset ._filter_by_action ("hibob_create_employee " , ["hibob_ *" ])
4444
4545 # Test non-matching patterns
46- assert not toolset ._filter_by_action ("crm_list_contacts " , ["*_list_employees" ])
47- assert not toolset ._filter_by_action ("ats_create_job " , ["hris_ *" ])
46+ assert not toolset ._filter_by_action ("workday_list_contacts " , ["*_list_employees" ])
47+ assert not toolset ._filter_by_action ("bamboohr_create_job " , ["hibob_ *" ])
4848
4949
5050def test_matches_filter_positive_patterns ():
5151 """Test _matches_filter with positive patterns"""
5252 toolset = StackOneToolSet (api_key = "test_key" )
5353
5454 # Single pattern
55- assert toolset ._matches_filter ("hris_list_employees " , "hris_ *" )
56- assert toolset ._matches_filter ("ats_create_job " , "ats_ *" )
57- assert not toolset ._matches_filter ("crm_contacts " , "hris_ *" )
55+ assert toolset ._matches_filter ("hibob_list_employees " , "hibob_ *" )
56+ assert toolset ._matches_filter ("bamboohr_create_job " , "bamboohr_ *" )
57+ assert not toolset ._matches_filter ("workday_contacts " , "hibob_ *" )
5858
5959 # Multiple patterns (OR logic)
60- assert toolset ._matches_filter ("hris_list_employees " , ["hris_ *" , "ats_ *" ])
61- assert toolset ._matches_filter ("ats_create_job " , ["hris_ *" , "ats_ *" ])
62- assert not toolset ._matches_filter ("crm_contacts " , ["hris_ *" , "ats_ *" ])
60+ assert toolset ._matches_filter ("hibob_list_employees " , ["hibob_ *" , "bamboohr_ *" ])
61+ assert toolset ._matches_filter ("bamboohr_create_job " , ["hibob_ *" , "bamboohr_ *" ])
62+ assert not toolset ._matches_filter ("workday_contacts " , ["hibob_ *" , "bamboohr_ *" ])
6363
6464
6565def test_matches_filter_negative_patterns ():
6666 """Test _matches_filter with negative patterns (exclusion)"""
6767 toolset = StackOneToolSet (api_key = "test_key" )
6868
6969 # Negative pattern
70- assert not toolset ._matches_filter ("hris_delete_employee " , ["hris_ *" , "!hris_delete_ *" ])
71- assert toolset ._matches_filter ("hris_list_employees " , ["hris_ *" , "!hris_delete_ *" ])
70+ assert not toolset ._matches_filter ("hibob_delete_employee " , ["hibob_ *" , "!hibob_delete_ *" ])
71+ assert toolset ._matches_filter ("hibob_list_employees " , ["hibob_ *" , "!hibob_delete_ *" ])
7272
7373 # Only negative patterns (should match everything not excluded)
74- assert not toolset ._matches_filter ("hris_delete_employee " , "!hris_delete_ *" )
75- assert toolset ._matches_filter ("hris_list_employees " , "!hris_delete_ *" )
74+ assert not toolset ._matches_filter ("hibob_delete_employee " , "!hibob_delete_ *" )
75+ assert toolset ._matches_filter ("hibob_list_employees " , "!hibob_delete_ *" )
0 commit comments