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"