def test_create_and_get_general_settings(self): print('Testing create_general_settings() and get_general_settings()') GeneralSettingsService.create_general_settings() generalSettings = GeneralSettingsService.get_general_settings() self._check_data(control_obj=generalSettings, checking_obj=self.generalSettingsCheck) print('Successful\n')
def test_update_general_settings(self): print('Testing update_general_settings()') GeneralSettingsService.create_general_settings() self.generalSettingsCheck.timeoutsLimit = 10 self.generalSettingsCheck.updateDelay = 150 self.generalSettingsCheck.bombMessagesTime = 30 self.generalSettingsCheck.dialogWindowTime = 120 self.generalSettingsCheck.timeUntilTimeout = 100 GeneralSettingsService.update_general_settings( generalSettings=self.generalSettingsCheck) generalSettings = GeneralSettingsService.get_general_settings() self._check_data(control_obj=generalSettings, checking_obj=self.generalSettingsCheck) print('Successful\n')