Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
Merge 0345fdb into be5f580
Browse files Browse the repository at this point in the history
  • Loading branch information
antonagestam committed Jan 5, 2017
2 parents be5f580 + 0345fdb commit 6a68339
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 8 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,11 @@ build: off
test_script:
# Run the project tests
- "%CMD_IN_ENV% python runtests.py"

# debug permissions
on_finish:
- cmd: icacls C:\projects\collectfast\static_root
- cmd: icacls C:\projects\collectfast\static_root\*

before_test:
- cmd: icacls C:\projects\collectfast\static_root /inheritance:r /grant Everyone:F
4 changes: 0 additions & 4 deletions collectfast/tests/test_etag.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import string
import tempfile
import platform

from mock import patch
from django.contrib.staticfiles.storage import StaticFilesStorage
Expand Down Expand Up @@ -50,9 +49,6 @@ def test_get_destroy_etag(case, mocked):

@test
def test_get_file_hash(case):
# disable this test on appveyor until permissions issue is solved
if platform.system() == 'Windows':
return
storage = StaticFilesStorage()
with tempfile.NamedTemporaryFile(dir=storage.base_location) as f:
f.write(b'spam')
Expand Down
1 change: 1 addition & 0 deletions runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def main():
os.makedirs(staticfiles_dir)
if not os.path.exists(staticroot_dir):
os.makedirs(staticroot_dir)
os.chmod(staticroot_dir, 0o777)

settings.configure(**{
# Set USE_TZ to True to work around bug in django-storages
Expand Down

0 comments on commit 6a68339

Please sign in to comment.