Skip to content

Honor strip_extension option when building entire directory structures from distutils #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add failing test
The distutils build_sass command runs the Manifest.build() method, not the
Manifest.build_one() method. The former does not honor the strip_extension
option.
  • Loading branch information
lunkwill42 committed Aug 23, 2018
commit 2642ccf45b19bede99c56c2cbc2a3c54e0d64ce4
12 changes: 11 additions & 1 deletion sasstests.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ def replace_source_path(s, name):
)


def test_manifest_strip_extension(tmpdir):
def test_manifest_build_one_strip_extension(tmpdir):
src = tmpdir.join('test').ensure_dir()
src.join('a.scss').write('a{b: c;}')

Expand All @@ -645,6 +645,16 @@ def test_manifest_strip_extension(tmpdir):
assert tmpdir.join('css/a.css').read() == 'a {\n b: c; }\n'


def test_manifest_build_strip_extension(tmpdir):
src = tmpdir.join('test').ensure_dir()
src.join('x.scss').write('a{b: c;}')

m = Manifest(sass_path='test', css_path='css', strip_extension=True)
m.build(package_dir=str(tmpdir))

assert tmpdir.join('css/x.css').read() == 'a {\n b: c; }\n'


class WsgiTestCase(BaseTestCase):

@staticmethod
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy