File synchronization_helpers.py
has 427 lines of code (exceeds 250 allowed). Consider refactoring.
'''
This file contains a variety of helper functions for data synchronization
'''
from requests import Session
Function mode_cycle_positions
has a Cognitive Complexity of 33 (exceeds 7 allowed). Consider refactoring.
def mode_cycle_positions(last_updated_date=None):
use_last_updated_string = ""
if last_updated_date is not None:
use_last_updated_string = f"<LAST_DATE_UPDATED>{last_updated_date}</LAST_DATE_UPDATED>"
Function get_soap_client
has a Cognitive Complexity of 12 (exceeds 7 allowed). Consider refactoring.
def get_soap_client(cert=None, soap_function="", test=False):
'''
Creates a properly initialized SOAP client, with unit testing support
Args:
Function mode_cycles
has a Cognitive Complexity of 10 (exceeds 7 allowed). Consider refactoring.
def mode_cycles(last_updated_date=None):
soap_arguments = {
"RequestorID": "TalentMAP",
"Action": "GET",
There are no issues that match your filters.