Skip to content

Commit

Permalink
feat(github-actions): reset mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiomario committed Feb 3, 2025
1 parent be46e19 commit f110e3b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/contrib/ds/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def create_image(mode="RGB", size=(800, 600)):

return image


def get_image(image_name="test_file.jpg", size=(800, 600)):
"""
Creates and stores an image to the file system using PILImage
Expand All @@ -43,6 +44,7 @@ def get_image(image_name="test_file.jpg", size=(800, 600)):
"path": image_path,
}


def get_file(file_name="test_file.pdf"):
"""
Creates and stores an arbitrary file into a temporary dir
Expand All @@ -62,6 +64,7 @@ def get_file(file_name="test_file.pdf"):
"path": file_path,
}


def get_filer_image(image_name="test_file.jpg", size=(800, 600)):
"""
Creates and stores an image to filer and returns it
Expand All @@ -81,6 +84,7 @@ def get_filer_image(image_name="test_file.jpg", size=(800, 600)):

return filer_object


def get_filer_file(file_name="test_file.pdf", folder=None):
"""
Creates and stores a file to filer and returns it
Expand All @@ -102,6 +106,7 @@ def get_filer_file(file_name="test_file.pdf", folder=None):

return filer_object


def get_filer_folder(folder_name="test_folder", parent=None):
"""
Creates and returns a filer folder
Expand Down
12 changes: 11 additions & 1 deletion app/contrib/partners/templates/partners/partners_list.html
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@

{% for partner in partners %}
{% if partner.link %}
<a href="{{ partner.link }}" target="_blank" rel="noopener noreferrer">
<img src="{{ partner.logo.url }}" alt="{{ partner.name }}">
</a>
{% else %}
<div class="partner-logo">
<img src="{{ partner.logo.url }}" alt="{{ partner.name }}">
</div>
{% endif %}
{% endfor %}

0 comments on commit f110e3b

Please sign in to comment.