@@ -698,7 +698,6 @@ def test_successful(self):
698
698
# Make sure we don't compile non-scss files
699
699
write_file (os .path .join (input_dir , 'baz.txt' ), 'Hello der' )
700
700
701
- # the api for this is weird, why does it need source?
702
701
sass .compile (dirname = (input_dir , output_dir ))
703
702
assert os .path .exists (output_dir )
704
703
assert os .path .exists (os .path .join (output_dir , 'foo' ))
@@ -711,6 +710,17 @@ def test_successful(self):
711
710
self .assertEqual (contentsf1 , 'a b {\n width: 100%; }\n ' )
712
711
self .assertEqual (contentsf2 , 'foo {\n width: 100%; }\n ' )
713
712
713
+ def test_ignores_underscored_files (self ):
714
+ with tempdir () as tmpdir :
715
+ input_dir = os .path .join (tmpdir , 'input' )
716
+ output_dir = os .path .join (tmpdir , 'output' )
717
+ os .mkdir (input_dir )
718
+ write_file (os .path .join (input_dir , 'f1.scss' ), '@import "f2";' )
719
+ write_file (os .path .join (input_dir , '_f2.scss' ), 'a{color:red}' )
720
+
721
+ sass .compile (dirname = (input_dir , output_dir ))
722
+ assert not os .path .exists (os .path .join (output_dir , '_f2.css' ))
723
+
714
724
def test_error (self ):
715
725
with tempdir () as tmpdir :
716
726
input_dir = os .path .join (tmpdir , 'input' )
0 commit comments