コード例 #1
0
ファイル: test_parser.py プロジェクト: gnutix/taxi
def test_parse_time_separator_without_timespan():
    with pytest.raises(ValueError):
        create_time_from_text('-')
コード例 #2
0
ファイル: test_parser.py プロジェクト: gnutix/taxi
def test_parse_time_invalid_string():
    with pytest.raises(ValueError):
        create_time_from_text('foo')
コード例 #3
0
ファイル: test_parser.py プロジェクト: gnutix/taxi
def test_parse_time_out_of_range(duration):
    with pytest.raises(ValueError):
        create_time_from_text(duration)
コード例 #4
0
ファイル: test_parser.py プロジェクト: gnutix/taxi
def test_parse_time_valid_big_integer():
    assert create_time_from_text('0900') == datetime.time(9, 0)
コード例 #5
0
ファイル: test_parser.py プロジェクト: sephii/taxi
def test_parse_time_separator_without_timespan():
    with pytest.raises(ValueError):
        create_time_from_text('-')
コード例 #6
0
ファイル: test_parser.py プロジェクト: sephii/taxi
def test_parse_time_out_of_range(duration):
    with pytest.raises(ValueError):
        create_time_from_text(duration)
コード例 #7
0
ファイル: test_parser.py プロジェクト: sephii/taxi
def test_parse_time_invalid_string():
    with pytest.raises(ValueError):
        create_time_from_text('foo')
コード例 #8
0
ファイル: test_parser.py プロジェクト: sephii/taxi
def test_parse_time_valid_big_integer():
    assert create_time_from_text('0900') == datetime.time(9, 0)