diff --git a/.gitignore b/.gitignore index 70da8b3..df08b40 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +_dist/ +.eggs .env __pycache__ *.egg-* diff --git a/bakery/tests/__init__.py b/bakery/tests/__init__.py index 06d995b..b3aa10d 100644 --- a/bakery/tests/__init__.py +++ b/bakery/tests/__init__.py @@ -4,6 +4,7 @@ import boto3 import json import random +from pathlib import Path from moto import mock_s3 from datetime import date from .. import views, feeds @@ -420,6 +421,10 @@ def test_build_cmd(self): favicon_path = os.path.join(settings.BUILD_DIR, 'favicon.ico') self.assertTrue(os.path.exists(favicon_path)) + def test_build_pathlib(self): + with self.settings(BUILD_DIR=Path(__file__).parent / "_dist"): + call_command("build", **{'skip_media': True, 'verbosity': 3}) + def test_unbuild_cmd(self): call_command("unbuild")