b3d19cb Fix test to not use Python 3.8 feature

Authored and Committed by vladimirslavik 3 years ago
    Fix test to not use Python 3.8 feature
    
    Returning the mock dictionary for context is a Python 3.8 feature.
    Also silence the warnings that this is an usafe operation, it is a mock now.