aboutsummaryrefslogtreecommitdiff
path: root/tests/filters/test_birthday.py
blob: 257f8c4a89e4830c8acdc0f0c273894bcf062a20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import pytest

import resumejson_converter.filters as filters


def test_birthday_no_parameter():
    with pytest.raises(TypeError):
        filters.birthday()


def test_birthday_false_date():
    with pytest.raises(ValueError):
        filters.birthday("1990-10-25a")


def test_birthday():
    assert filters.birthday("1990-10-25") == "25 octobre 1990"