fixed example
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 117 KiB |
@@ -27,9 +27,9 @@ sys.path.insert(0, str(Path(__file__).parent.parent))
|
|||||||
def create_book_catalog_html():
|
def create_book_catalog_html():
|
||||||
"""Create HTML for a book catalog table with actual <img> tags."""
|
"""Create HTML for a book catalog table with actual <img> tags."""
|
||||||
# Get base path for images - use absolute paths for the img src
|
# Get base path for images - use absolute paths for the img src
|
||||||
Path(__file__).parent.parent / "tests" / "data"
|
data_path = Path(__file__).parent.parent / "tests" / "data"
|
||||||
|
|
||||||
html = """
|
html = f"""
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<table>
|
<table>
|
||||||
@@ -76,9 +76,9 @@ def create_book_catalog_html():
|
|||||||
|
|
||||||
def create_product_showcase_html():
|
def create_product_showcase_html():
|
||||||
"""Create HTML for a product showcase table with images."""
|
"""Create HTML for a product showcase table with images."""
|
||||||
Path(__file__).parent.parent / "tests" / "data"
|
data_path = Path(__file__).parent.parent / "tests" / "data"
|
||||||
|
|
||||||
html = """
|
html = f"""
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<table>
|
<table>
|
||||||
|
|||||||
Reference in New Issue
Block a user