Skip to content

Commit

Permalink
use dm.available_themes in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sinaatalay committed Feb 15, 2024
1 parent c6948b7 commit 90020a8
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/test_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,12 @@ def test_setup_jinja2_environment():
assert "get_an_item_with_a_specific_attribute_value" in env.filters


themes = ["classic", "moderncv", "mcdowell"]
update_reference_files = False


@pytest.mark.parametrize(
"theme_name",
themes,
dm.available_themes,
)
@time_machine.travel("2024-01-01")
def test_generate_latex_file(tmp_path, reference_files_directory_path, theme_name):
Expand All @@ -274,7 +273,7 @@ def test_generate_latex_file(tmp_path, reference_files_directory_path, theme_nam

@pytest.mark.parametrize(
"theme_name",
themes,
dm.available_themes,
)
@time_machine.travel("2024-01-01")
def test_generate_markdown_file(tmp_path, reference_files_directory_path, theme_name):
Expand Down Expand Up @@ -302,7 +301,7 @@ def test_generate_markdown_file(tmp_path, reference_files_directory_path, theme_

@pytest.mark.parametrize(
"theme_name",
themes,
dm.available_themes,
)
def test_copy_theme_files_to_output_directory(
tmp_path, reference_files_directory_path, theme_name
Expand Down Expand Up @@ -342,7 +341,7 @@ def test_copy_theme_files_to_output_directory_custom_theme(

@pytest.mark.parametrize(
"theme_name",
themes,
dm.available_themes,
)
@time_machine.travel("2024-01-01")
def test_generate_latex_file_and_copy_theme_files(
Expand All @@ -364,7 +363,7 @@ def test_generate_latex_file_and_copy_theme_files(

@pytest.mark.parametrize(
"theme_name",
themes,
dm.available_themes,
)
@time_machine.travel("2024-01-01")
def test_latex_to_pdf(tmp_path, reference_files_directory_path, theme_name):
Expand Down Expand Up @@ -392,7 +391,7 @@ def test_latex_to_pdf_invalid_latex_file():

@pytest.mark.parametrize(
"theme_name",
themes,
dm.available_themes,
)
@time_machine.travel("2024-01-01")
def test_markdown_to_html(tmp_path, reference_files_directory_path, theme_name):
Expand Down

0 comments on commit 90020a8

Please sign in to comment.