Module Import alias Import alias Import alias Import alias ImportFrom alias alias alias FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Lambda arguments args defaults vararg NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr NameLoad Str Assert Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call NameLoad NameLoad NameStore body Assert CompareEq Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Lambda arguments args defaults vararg NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assert Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad BinOpAdd NameLoad Str attr Assert CompareEq SubscriptLoad NameLoad Index Str Str Assert CompareEq SubscriptLoad NameLoad Index Str ListLoad Str Assert CompareEq SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assert Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore ListLoad Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad For NameStore TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Lambda arguments args NameParam defaults CompareIn NameLoad NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Str Str Str Assert CompareEq Call AttributeLoad NameLoad attr Str Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad NameLoad attr Str ListLoad Str Str Str Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str decorator_list
N/A N/A json N/A os N/A pretend N/A pytest static_precompiler compilers exceptions utils test_compile_file N/A N/A monkeypatch tmpdir N/A N/A N/A N/A N/A monkeypatch setattr static_precompiler.settings.ROOT N/A tmpdir strpath N/A convert_urls N/A N/A pretend call_recorder N/A N/A N/A N/A args None N/A N/A N/A monkeypatch setattr static_precompiler.utils.convert_urls convert_urls N/A compiler N/A N/A compilers Stylus N/A N/A N/A N/A compiler compile_file styles/stylus/A.styl COMPILED/styles/stylus/A.css N/A full_output_path N/A N/A compiler get_full_output_path styles/stylus/A.styl N/A N/A N/A convert_urls calls N/A N/A N/A pretend call full_output_path styles/stylus/A.styl N/A N/A N/A N/A os path exists full_output_path N/A N/A open full_output_path compiled N/A N/A N/A N/A N/A compiled read p {
  color: #f00;
}
 N/A test_sourcemap N/A N/A monkeypatch tmpdir N/A N/A N/A N/A N/A monkeypatch setattr static_precompiler.settings.ROOT N/A tmpdir strpath N/A N/A N/A monkeypatch setattr static_precompiler.utils.convert_urls N/A N/A N/A N/A args None N/A compiler N/A N/A compilers Stylus sourcemap_enabled False N/A N/A N/A compiler compile_file styles/stylus/A.styl N/A full_output_path N/A N/A compiler get_full_output_path styles/stylus/A.styl N/A N/A N/A N/A N/A os path exists N/A full_output_path .map N/A compiler N/A N/A compilers Stylus sourcemap_enabled True N/A N/A N/A compiler compile_file styles/stylus/A.styl N/A full_output_path N/A N/A compiler get_full_output_path styles/stylus/A.styl N/A N/A N/A N/A os path exists N/A full_output_path .map N/A sourcemap N/A N/A json loads N/A N/A N/A open N/A full_output_path .map read N/A N/A N/A sourcemap N/A sourceRoot ../../../styles/stylus N/A N/A N/A sourcemap N/A sources N/A F.styl N/A N/A N/A sourcemap N/A file A.css N/A test_compile_source N/A N/A N/A N/A N/A compiler N/A N/A compilers Stylus N/A N/A N/A N/A utils fix_line_breaks N/A N/A compiler compile_source p
  color: red; p {
  color: #f00;
}

 N/A N/A N/A pytest raises N/A exceptions StaticCompilationError N/A N/A N/A N/A compiler compile_source broken N/A test_find_imports N/A N/A N/A N/A N/A source 
@import " "
@import "foo.styl"
@import 'foo'
@import "foo.css"
@import "http://foo.com/bar"
@import "https://foo.com/bar"
@import url(foo)
@import url(http://fonts.googleapis.com/css?family=Arvo:400,700,400italic,700italic)
@import url("http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,700,600,300")
@require "foo.styl"
@require "foo/*"
 N/A expected N/A foo foo.styl foo/* N/A compiler N/A N/A compilers Stylus N/A N/A N/A N/A compiler find_imports source expected N/A test_locate_imported_file N/A N/A monkeypatch N/A N/A N/A compiler N/A N/A compilers Stylus N/A root N/A N/A N/A os path dirname __file__ N/A existing_files N/A set N/A f N/A A/B.styl C.styl N/A N/A N/A N/A existing_files add N/A N/A N/A os path join root static N/A N/A utils normalize_path f N/A N/A N/A monkeypatch setattr os.path.exists N/A N/A N/A x N/A N/A x existing_files N/A N/A N/A N/A compiler locate_imported_file A B.styl A/B.styl N/A N/A N/A N/A compiler locate_imported_file C.styl C.styl N/A N/A N/A pytest raises N/A exceptions StaticCompilationError N/A N/A N/A N/A compiler locate_imported_file Z.styl N/A test_find_dependencies N/A N/A N/A N/A N/A compiler N/A N/A compilers Stylus N/A N/A N/A N/A compiler find_dependencies styles/stylus/A.styl N/A styles/stylus/B/C.styl styles/stylus/D.styl styles/stylus/E/F.styl styles/stylus/E/index.styl N/A N/A N/A pytest raises N/A exceptions StaticCompilationError N/A N/A N/A N/A compiler find_dependencies styles/stylus/broken1.styl N/A N/A N/A pytest raises N/A exceptions StaticCompilationError N/A N/A N/A N/A compiler find_dependencies styles/stylus/broken2.styl N/A N/A N/A pytest raises N/A exceptions StaticCompilationError N/A N/A N/A N/A compiler find_dependencies styles/stylus/broken3.styl N/A