mirror of
https://github.com/rendercv/rendercv.git
synced 2025-12-23 21:47:55 -05:00
Bundle Font Awesome 6 fonts (#314)
* Bundle Font Awesome 6 fonts * hope to skip less tests with font awesome fix * update schema * format * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -48,8 +48,8 @@ experience_entry_dictionary = {
|
||||
"end_date": "2021-08-12",
|
||||
"highlights": [
|
||||
(
|
||||
"Developed an [IOS application](https://example.com) that has received"
|
||||
" more than **100,000 downloads**."
|
||||
"Developed an [IOS application](https://example.com) that has received more"
|
||||
" than **100,000 downloads**."
|
||||
),
|
||||
"Managed a team of **5** engineers.",
|
||||
],
|
||||
@@ -172,14 +172,14 @@ def return_a_value_for_a_field_type(
|
||||
"end_date": "2020-06",
|
||||
"date": "2021-09",
|
||||
"summary": (
|
||||
"Did *this* and this is a **bold** [link](https://example.com). But I"
|
||||
" must explain to you how all this mistaken idea of denouncing pleasure"
|
||||
" and praising pain was born and I will give you a complete account of"
|
||||
" the system, and expound the actual teachings of the great explorer of"
|
||||
" the truth, the master-builder of human happiness. No one rejects,"
|
||||
" dislikes, or avoids pleasure itself, because it is pleasure, but"
|
||||
" because those who do not know how to pursue pleasure rationally"
|
||||
" encounter consequences that are extremely painful."
|
||||
"Did *this* and this is a **bold** [link](https://example.com). But I must"
|
||||
" explain to you how all this mistaken idea of denouncing pleasure and"
|
||||
" praising pain was born and I will give you a complete account of the"
|
||||
" system, and expound the actual teachings of the great explorer of the"
|
||||
" truth, the master-builder of human happiness. No one rejects, dislikes,"
|
||||
" or avoids pleasure itself, because it is pleasure, but because those who"
|
||||
" do not know how to pursue pleasure rationally encounter consequences that"
|
||||
" are extremely painful."
|
||||
),
|
||||
"highlights": [
|
||||
(
|
||||
@@ -229,14 +229,14 @@ def return_a_value_for_a_field_type(
|
||||
pydantic.HttpUrl: "https://example.com",
|
||||
pydantic_phone_numbers.PhoneNumber: "+905419999999",
|
||||
str: (
|
||||
"Did *this* and this is a **bold** [link](https://example.com). But I"
|
||||
" must explain to you how all this mistaken idea of denouncing pleasure"
|
||||
" and praising pain was born and I will give you a complete account of"
|
||||
" the system, and expound the actual teachings of the great explorer of"
|
||||
" the truth, the master-builder of human happiness. No one rejects,"
|
||||
" dislikes, or avoids pleasure itself, because it is pleasure, but"
|
||||
" because those who do not know how to pursue pleasure rationally"
|
||||
" encounter consequences that are extremely painful."
|
||||
"Did *this* and this is a **bold** [link](https://example.com). But I must"
|
||||
" explain to you how all this mistaken idea of denouncing pleasure and"
|
||||
" praising pain was born and I will give you a complete account of the"
|
||||
" system, and expound the actual teachings of the great explorer of the"
|
||||
" truth, the master-builder of human happiness. No one rejects, dislikes,"
|
||||
" or avoids pleasure itself, because it is pleasure, but because those who"
|
||||
" do not know how to pursue pleasure rationally encounter consequences that"
|
||||
" are extremely painful."
|
||||
),
|
||||
list[str]: ["A string", "Another string"],
|
||||
int: 1,
|
||||
@@ -433,11 +433,6 @@ def are_these_two_files_the_same(file1: pathlib.Path, file2: pathlib.Path) -> bo
|
||||
break
|
||||
|
||||
return result
|
||||
if extension1 == ".png":
|
||||
# fail if the relative difference is greater than 1%
|
||||
return (
|
||||
file1.stat().st_size - file2.stat().st_size
|
||||
) / file1.stat().st_size < 0.01
|
||||
|
||||
return filecmp.cmp(file1, file2)
|
||||
|
||||
|
||||
@@ -135,11 +135,16 @@ def test_generate_json_schema_file(tmp_path):
|
||||
assert isinstance(schema, dict)
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="This tests doesn't work on GitHub Actions!")
|
||||
def test_if_the_schema_is_the_latest(root_directory_path):
|
||||
original_schema_file_path = root_directory_path / "schema.json"
|
||||
original_schema_text = original_schema_file_path.read_text()
|
||||
original_schema = json.loads(original_schema_text)
|
||||
original_schema["$defs"]["RenderCVSettings"]["properties"]["date"]["default"] = (
|
||||
Date.today().isoformat()
|
||||
)
|
||||
original_schema["properties"]["rendercv_settings"]["default"]["date"] = (
|
||||
Date.today().isoformat()
|
||||
)
|
||||
|
||||
new_schema = data.generate_json_schema()
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ import copy
|
||||
import os
|
||||
import pathlib
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
import jinja2
|
||||
import pytest
|
||||
@@ -426,10 +425,7 @@ def test_create_a_typst_file_and_copy_theme_files(
|
||||
"curriculum_vitae_data_model",
|
||||
[
|
||||
"rendercv_empty_curriculum_vitae_data_model",
|
||||
pytest.param(
|
||||
"rendercv_filled_curriculum_vitae_data_model",
|
||||
marks=pytest.mark.skip(reason="This test doesn't work on GitHub Actions!"),
|
||||
),
|
||||
"rendercv_filled_curriculum_vitae_data_model",
|
||||
],
|
||||
)
|
||||
def test_render_a_pdf_from_typst(
|
||||
@@ -532,10 +528,6 @@ def test_render_html_from_markdown_nonexistent_markdown_file():
|
||||
renderer.render_an_html_from_markdown(file_path)
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
sys.platform == "darwin",
|
||||
reason="This test doesn't work on GitHub Actions MacOS!",
|
||||
)
|
||||
def test_render_pngs_from_typst(
|
||||
run_a_function_and_check_if_output_is_the_same_as_reference,
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user