1515def test_error_hooks_run_error_method (mock_hook ):
1616 # Given
1717 hook_context = HookContext ("flag_key" , FlagType .BOOLEAN , True , "" )
18- hook_hints = MappingProxyType (dict () )
18+ hook_hints = MappingProxyType ({} )
1919 # When
2020 error_hooks (FlagType .BOOLEAN , hook_context , Exception , [mock_hook ], hook_hints )
2121 # Then
@@ -29,7 +29,7 @@ def test_error_hooks_run_error_method(mock_hook):
2929def test_before_hooks_run_before_method (mock_hook ):
3030 # Given
3131 hook_context = HookContext ("flag_key" , FlagType .BOOLEAN , True , "" )
32- hook_hints = MappingProxyType (dict () )
32+ hook_hints = MappingProxyType ({} )
3333 # When
3434 before_hooks (FlagType .BOOLEAN , hook_context , [mock_hook ], hook_hints )
3535 # Then
@@ -61,7 +61,7 @@ def test_after_hooks_run_after_method(mock_hook):
6161 flag_evaluation_details = FlagEvaluationDetails (
6262 hook_context .flag_key , "val" , "unknown"
6363 )
64- hook_hints = MappingProxyType (dict () )
64+ hook_hints = MappingProxyType ({} )
6565 # When
6666 after_hooks (
6767 FlagType .BOOLEAN , hook_context , flag_evaluation_details , [mock_hook ], hook_hints
@@ -77,7 +77,7 @@ def test_after_hooks_run_after_method(mock_hook):
7777def test_finally_after_hooks_run_finally_after_method (mock_hook ):
7878 # Given
7979 hook_context = HookContext ("flag_key" , FlagType .BOOLEAN , True , "" )
80- hook_hints = MappingProxyType (dict () )
80+ hook_hints = MappingProxyType ({} )
8181 # When
8282 after_all_hooks (FlagType .BOOLEAN , hook_context , [mock_hook ], hook_hints )
8383 # Then
0 commit comments