Skip to content

Commit

Permalink
Add test that demonstrates #175
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Mar 14, 2023
1 parent d232733 commit bad6aca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
_dist/
.eggs
.env
__pycache__
*.egg-*
Expand Down
5 changes: 5 additions & 0 deletions bakery/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit bad6aca

Please sign in to comment.