tests: add new tests

This commit is contained in:
Sina Atalay committed 2024-05-19 13:55:01 +03:00
1 parent 24170eb034
commit debce0551c
2 files changed
+63 -6

No files matched your search

+13 -1
View File
@@ -1,12 +1,14 @@
import os
import shutil
import subprocess
import sys
from datetime import date as Date
import pydantic
import ruamel.yaml
import pytest
import typer.testing
import rendercv.cli as cli
import rendercv.data_models as dm
@@ -83,6 +85,12 @@ def test_get_error_message_and_location_and_value_from_a_custom_error():
"position": "Researcher",
},
),
(
dm.ExperienceEntry,
{
"position": Date(2020, 10, 1),
},
),
(
dm.ExperienceEntry,
{
@@ -475,3 +483,7 @@ def test_create_theme_command_theme_already_exists(tmp_path):
result = runner.invoke(cli.app, ["create-theme", "newtheme"])
assert "already exists!" in result.stdout
def test_main_file():
subprocess.run([sys.executable, "-m", "rendercv", "--help"], check=True)