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'))
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'))
def test_atomic_request_setting_set_to_true_should_not_produce_any_errors( self): errors = check_atomic_requests() self.assertEqual(errors, [])
def test_non_dict_database_setting_value_should_not_produce_any_errors( self): errors = check_atomic_requests() self.assertEqual(errors, [])