trader/tests/conftest.py
def two_sequential_days(request):
    """Return array of days of 2018 year


    Args:
        request (Object): which day to return

    Returns:
        Returns two days or one depending whether parameter is passed
        Array: [start_dt, end_dt]
    """
    dates = [
        datetime.datetime(2018, 1, 1),
        datetime.datetime(2018, 1, 2)
    ]

    return ([dates[request.param]] if
            hasattr(request, 'param') and
            request.param is not None else
            dates)
Return array of days of 2018 year


    Args:
        request (Object): which day to return

    Returns:
        Returns two days or one depending whether parameter is passed
        Array: [start_dt, end_dt]
    
Return array of days of 2018 year
Return array of days of 2018 year
def two_sequential_days(request):
    dates = [
        datetime.datetime(2018, 1, 1),
        datetime.datetime(2018, 1, 2)
    ]
    return ([dates[request.param]] if
            hasattr(request, 'param') and
            request.param is not None else
            dates)
def two_sequential_days ( request ) : dates = [ datetime . datetime ( 2018 , 1 , 1 ) , datetime . datetime ( 2018 , 1 , 2 ) ] return ( [ dates [ request . param ] ] if hasattr ( request , 'param' ) and request . param is not None else dates )
Return array of days of 2018 year
Return array of days of 2018 year
"""Return array of days of 2018 year


    Args:
        request (Object): which day to return

    Returns:
        Returns two days or one depending whether parameter is passed
        Array: [start_dt, end_dt]
    """
Returns two days or one depending whether parameter is passed
Array: [start_dt, end_dt]
Returns two days or one depending whether parameter is passed Array : [ start_dt end_dt ]
request
which day to return
which day to return