Skip to content

Commit

Permalink
Test: Split out black and white mapping tests
Browse files Browse the repository at this point in the history
Signed-off-by: Luis Garcia <[email protected]>
luigi311 committed Nov 9, 2024
1 parent c866897 commit 53ee540
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions test/test_black_white.py
Original file line number Diff line number Diff line change
@@ -18,12 +18,12 @@

def test_setup_black_white_lists():
# Simple
blacklist_library = "library1, library2"
whitelist_library = "library1, library2"
blacklist_library_type = "library_type1, library_type2"
whitelist_library_type = "library_type1, library_type2"
blacklist_users = "user1, user2"
whitelist_users = "user1, user2"
blacklist_library = ["library1", "library2"]
whitelist_library = ["library1", "library2"]
blacklist_library_type = ["library_type1", "library_type2"]
whitelist_library_type = ["library_type1", "library_type2"]
blacklist_users = ["user1", "user2"]
whitelist_users = ["user1", "user2"]

(
results_blacklist_library,
@@ -48,6 +48,14 @@ def test_setup_black_white_lists():
assert return_blacklist_users == ["user1", "user2"]
assert return_whitelist_users == ["user1", "user2"]

def test_library_mapping_black_white_list():
blacklist_library = ["library1", "library2"]
whitelist_library = ["library1", "library2"]
blacklist_library_type = ["library_type1", "library_type2"]
whitelist_library_type = ["library_type1", "library_type2"]
blacklist_users = ["user1", "user2"]
whitelist_users = ["user1", "user2"]

# Library Mapping and user mapping
library_mapping = {"library1": "library3"}
user_mapping = {"user1": "user3"}

0 comments on commit 53ee540

Please sign in to comment.