Skip to content

Commit

Permalink
Add theme fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed Sep 25, 2023
1 parent 4df6c31 commit 93cf4ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/export/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import git
from git.cmd import Git
from yaml import load, safe_dump
from django.conf import settings
from django.core.mail import send_mail
from django.core.serializers import serialize
from django.template.loader import get_template
Expand All @@ -38,6 +39,10 @@
# zip file of base jekyll site with digital edition templates
JEKYLL_THEME_ZIP = digitaledition_jekylltheme.ZIPFILE_PATH

# The GitHub action env does not seem to find the zip file.
if os.environ['DJANGO_ENV'] == 'test' and not os.path.exists(JEKYLL_THEME_ZIP):
JEKYLL_THEME_ZIP = os.path.join(settings.APPS_DIR, 'export', 'tests', 'digitaledition-jekylltheme.zip')

class ExportException(Exception):
"""Custom exception"""
pass
Expand Down
Binary file not shown.

0 comments on commit 93cf4ea

Please sign in to comment.