comparison test/test_actions.py @ 5718:842252c3ee22

Change access to config from dict to property. This makes doing the mock for testing easier and unbreaks the changes to the tests that I did earlier.
author John Rouillard <rouilj@ieee.org>
date Sat, 11 May 2019 17:50:00 -0400
parents cad18de2b988
children 8dbe307bdb57
comparison
equal deleted inserted replaced
5717:cad18de2b988 5718:842252c3ee22
24 self.client = MockNull() 24 self.client = MockNull()
25 self.client.db.Otk = MockNull() 25 self.client.db.Otk = MockNull()
26 self.client.db.Otk.data = {} 26 self.client.db.Otk.data = {}
27 self.client.db.Otk.getall = self.data_get 27 self.client.db.Otk.getall = self.data_get
28 self.client.db.Otk.set = self.data_set 28 self.client.db.Otk.set = self.data_set
29 self.client.db.config = {'WEB_LOGIN_ATTEMPTS_MIN': 20} 29 self.client.db.config.WEB_LOGIN_ATTEMPTS_MIN = 20
30 self.client._ok_message = [] 30 self.client._ok_message = []
31 self.client._error_message = [] 31 self.client._error_message = []
32 self.client.add_error_message = lambda x : add_message( 32 self.client.add_error_message = lambda x : add_message(
33 self.client._error_message, x) 33 self.client._error_message, x)
34 self.client.add_ok_message = lambda x : add_message( 34 self.client.add_ok_message = lambda x : add_message(

Roundup Issue Tracker: http://roundup-tracker.org/