use dm.available_themes in tests

This commit is contained in:
Sina Atalay 2024-02-15 19:46:41 +01:00
parent 26abc00202
commit dc3cae7a83
1 changed files with 6 additions and 7 deletions

View File

@ -242,13 +242,12 @@ def test_setup_jinja2_environment():
assert "get_an_item_with_a_specific_attribute_value" in env.filters assert "get_an_item_with_a_specific_attribute_value" in env.filters
themes = ["classic", "moderncv", "mcdowell"]
update_reference_files = False update_reference_files = False
@pytest.mark.parametrize( @pytest.mark.parametrize(
"theme_name", "theme_name",
themes, dm.available_themes,
) )
@time_machine.travel("2024-01-01") @time_machine.travel("2024-01-01")
def test_generate_latex_file(tmp_path, reference_files_directory_path, theme_name): def test_generate_latex_file(tmp_path, reference_files_directory_path, theme_name):
@ -274,7 +273,7 @@ def test_generate_latex_file(tmp_path, reference_files_directory_path, theme_nam
@pytest.mark.parametrize( @pytest.mark.parametrize(
"theme_name", "theme_name",
themes, dm.available_themes,
) )
@time_machine.travel("2024-01-01") @time_machine.travel("2024-01-01")
def test_generate_markdown_file(tmp_path, reference_files_directory_path, theme_name): def test_generate_markdown_file(tmp_path, reference_files_directory_path, theme_name):
@ -302,7 +301,7 @@ def test_generate_markdown_file(tmp_path, reference_files_directory_path, theme_
@pytest.mark.parametrize( @pytest.mark.parametrize(
"theme_name", "theme_name",
themes, dm.available_themes,
) )
def test_copy_theme_files_to_output_directory( def test_copy_theme_files_to_output_directory(
tmp_path, reference_files_directory_path, theme_name tmp_path, reference_files_directory_path, theme_name
@ -342,7 +341,7 @@ def test_copy_theme_files_to_output_directory_custom_theme(
@pytest.mark.parametrize( @pytest.mark.parametrize(
"theme_name", "theme_name",
themes, dm.available_themes,
) )
@time_machine.travel("2024-01-01") @time_machine.travel("2024-01-01")
def test_generate_latex_file_and_copy_theme_files( def test_generate_latex_file_and_copy_theme_files(
@ -364,7 +363,7 @@ def test_generate_latex_file_and_copy_theme_files(
@pytest.mark.parametrize( @pytest.mark.parametrize(
"theme_name", "theme_name",
themes, dm.available_themes,
) )
@time_machine.travel("2024-01-01") @time_machine.travel("2024-01-01")
def test_latex_to_pdf(tmp_path, reference_files_directory_path, theme_name): def test_latex_to_pdf(tmp_path, reference_files_directory_path, theme_name):
@ -392,7 +391,7 @@ def test_latex_to_pdf_invalid_latex_file():
@pytest.mark.parametrize( @pytest.mark.parametrize(
"theme_name", "theme_name",
themes, dm.available_themes,
) )
@time_machine.travel("2024-01-01") @time_machine.travel("2024-01-01")
def test_markdown_to_html(tmp_path, reference_files_directory_path, theme_name): def test_markdown_to_html(tmp_path, reference_files_directory_path, theme_name):