mirror of
https://github.com/rendercv/rendercv.git
synced 2026-10-24 13:18:50 -04:00
tests: add new tests
This commit is contained in:
1 parent
24170eb034
commit
debce0551c
2 files changed
+63
-6
No files matched your search
+13
-1
@@ -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)
|
||||
Reference in new issue
Block a user