コード例 #1
0
ファイル: test_cli.py プロジェクト: dsblank/pypistats
    def test__month_12(self):
        # Arrange
        yyyy_mm = "2018-12"

        # Act
        first, last = cli._month(yyyy_mm)

        # Assert
        self.assertEqual(first, "2018-12-01")
        self.assertEqual(last, "2018-12-31")
コード例 #2
0
def test__month(test_input, expected):
    # Act
    first, last = cli._month(test_input)

    # Assert
    assert expected == (first, last)
コード例 #3
0
ファイル: test_cli.py プロジェクト: hugovk/pypistats
def test__month(test_input: str, expected: str) -> None:
    # Act
    first, last = cli._month(test_input)

    # Assert
    assert expected == (first, last)