File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,8 +9,35 @@ def test_simple(self):
99 env = {k : v for k , v in os .environ .items () if not k .endswith ("_COLORS" )}
1010 env ["PYTHONUTF8" ] = "1"
1111 process = subprocess .run (
12- os .path .abspath ("3" ),
13- shell = True ,
12+ [os .path .abspath ("3" )],
13+ env = env ,
14+ stdout = subprocess .PIPE ,
15+ )
16+ self .assertEqual (process .returncode , 0 )
17+ self .assertEqual (
18+ process .stdout ,
19+ """
20+ [01;34m.[0m
21+ ├── [01;32m3[0m
22+ ├── [01;32m3.cmd[0m
23+ ├── [01;34mexamples[0m
24+ │ └── [00m3.png[0m
25+ ├── [00mLICENSE.md[0m
26+ ├── [00mpyproject.toml[0m
27+ ├── [00mREADME.md[0m
28+ ├── [00mrequirements.txt[0m
29+ ├── [00msetup.py[0m
30+ └── [00mtests.py[0m
31+
32+ 1 directories, 9 files
33+ """ .lstrip ().encode (),
34+ )
35+
36+ def test_all (self ):
37+ env = {k : v for k , v in os .environ .items () if not k .endswith ("_COLORS" )}
38+ env ["PYTHONUTF8" ] = "1"
39+ process = subprocess .run (
40+ [os .path .abspath ("3" ), "-a" ],
1441 env = env ,
1542 stdout = subprocess .PIPE ,
1643 )
You can’t perform that action at this time.
0 commit comments