def test_get_fiscal_period( year: int, quarter: Optional[int], fye: Optional[str], expect_start: str, expect_end: str, ) -> None: fye = parse_fye_string(fye) start_date, end_date = get_fiscal_period(year, fye, quarter) assert str(start_date) == expect_start assert str(end_date) == expect_end
def test_get_fiscal_period( year: int, quarter: int | None, fye_str: str | None, expect_start: str, expect_end: str, ) -> None: fye = parse_fye_string(fye_str) if fye_str else None start_date, end_date = get_fiscal_period(year, fye, quarter) assert str(start_date) == expect_start assert str(end_date) == expect_end
def test_get_fiscal_period(year, quarter, fye, expect_start, expect_end): start_date, end_date = get_fiscal_period(year, fye, quarter) assert str(start_date) == expect_start assert str(end_date) == expect_end
def test_get_fiscal_period(year, quarter, fye, expect_start, expect_end): start_date, end_date = get_fiscal_period(year, fye, quarter) assert str(start_date) == expect_start assert str(end_date) == expect_end