File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 14
14
# a commercial license, send an email to [email protected] .
15
15
import zipfile
16
16
import shutil
17
- import time
18
17
from pathlib import Path
19
18
20
19
import pytest
@@ -26,12 +25,18 @@ def copy_sketch(working_dir):
26
25
sketch_path = Path (__file__ ).parent / "testdata" / "sketch_simple"
27
26
test_sketch_path = Path (working_dir ) / "sketch_simple"
28
27
shutil .copytree (sketch_path , test_sketch_path )
29
- while not Path (test_sketch_path ).exists ():
30
- time .sleep (1 )
31
28
yield str (test_sketch_path )
32
29
33
30
34
31
def test_archive_no_args (run_command , copy_sketch , working_dir ):
32
+ result = run_command ("echo %cd%" , copy_sketch )
33
+ print (result .stdout )
34
+ print (result .stderr )
35
+
36
+ result = run_command ("dir" , copy_sketch )
37
+ print (result .stdout )
38
+ print (result .stderr )
39
+
35
40
result = run_command ("archive" , copy_sketch )
36
41
print (result .stdout )
37
42
print (result .stderr )
You can’t perform that action at this time.
0 commit comments