Beispiel #1
0
 def test_context_can_be_cleared_and_then_updated(self):
     Context.update({"username": "******"})
     assert Context.current() == {"username": "******"}
     Context.clear()
     assert Context.current() == {}
     Context.update({"username": "******"})
     assert Context.current() == {"username": "******"}
Beispiel #2
0
 def teardown_method(self, method):
     # Clear the context after each test
     Context.clear()