def test_datetime(self):
    current_period_end = datetime(2022, 6, 30, 23, 59, 59)
    if ((current_period_end - datetime.now()) > timedelta(days=30)):
        if (datetime.now().month < 7):
            if (current_period_end.month > 6):
                current_period_end = datetime(datetime.now().year, 6, 30, 23, 59, 59)
def test_datetime(self):
    current_period_end = datetime(2022, 6, 30, 23, 59, 59)
    if ((current_period_end - datetime.now()) > timedelta(days=30)):
        if (datetime.now().month < 7):
            if (current_period_end.month > 6):
                current_period_end = datetime(datetime.now().year, 6, 30, 23, 59, 59)