예제 #1
0
    def test_atomic_request_setting_set_to_false_should_produce_error(self):
        errors = check_atomic_requests()

        self.assertEqual(
            errors[0],
            create_error_12_atomic_requests_not_set_for_database(
                'non-default'))
예제 #2
0
    def test_atomic_request_setting_set_to_non_bool_type_should_produce_error(
            self):
        errors = check_atomic_requests()

        self.assertEqual(
            errors[0],
            create_error_5_invalid_setting_type(
                f"DATABASES[default]['ATOMIC_REQUESTS']", 'test'))
예제 #3
0
    def test_atomic_request_setting_set_to_true_should_not_produce_any_errors(
            self):
        errors = check_atomic_requests()

        self.assertEqual(errors, [])
예제 #4
0
    def test_non_dict_database_setting_value_should_not_produce_any_errors(
            self):
        errors = check_atomic_requests()

        self.assertEqual(errors, [])