Ejemplo n.º 1
0
def test_normalize_dates_yyy_mm_dd_and_negative_integer():
    # Arrange
    start_date = "2019-03-18"
    end_date = -1

    # Act
    start_date, end_date = core.normalize_dates(start_date, end_date)

    # Assert
    assert start_date == "2019-03-18"
    assert end_date == -1
Ejemplo n.º 2
0
def test_normalize_dates_yyy_mm():
    # Arrange
    start_date = "2019-03"
    end_date = "2019-03"

    # Act
    start_date, end_date = core.normalize_dates(start_date, end_date)

    # Assert
    assert start_date == "2019-03-01"
    assert end_date == "2019-03-31"