示例#1
0
    def test_get_general_settings_count(self):
        print('Testing get_general_settings_count()')

        GeneralSettingsService.create_general_settings()
        answer = GeneralSettingsService.get_general_settings_count()

        self.assertEqual(
            answer, 1, 'rows_count should be {0} actual {1}'.format(1, answer))
        print('Successful\n')
示例#2
0
    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')
示例#3
0
    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')