File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 11
11
from pywps .tests import client_for , assert_response_accepted , assert_response_success
12
12
from processes import Sleep
13
13
from owslib .wps import WPSExecution
14
- from pathlib import Path
15
- from tempfile import TemporaryDirectory
16
- from pywps import dblog
14
+ from urllib .parse import urlparse
17
15
18
16
VERSION = "1.0.0"
19
17
@@ -50,13 +48,13 @@ def test_async(self):
50
48
print (url )
51
49
52
50
# OWSlib only reads from URLs, not local files. So we need to read the response manually.
53
- p = Path ( configuration . get_config_value ( 'server' , 'outputpath' )) / url . split ( '/' )[ - 1 ]
51
+ url = urlparse ( url )
54
52
55
53
# Poll the process until it completes
56
54
total_time = 0
57
55
sleep_time = .01
58
56
while wps .status not in ["ProcessSucceeded" , "ProcessFailed" ]:
59
- resp = p . read_bytes ()
57
+ resp = client . get ( f' { url . path } ? { url . query } ' ). data
60
58
if resp :
61
59
wps .checkStatus (response = resp , sleepSecs = 0.01 )
62
60
else :
You can’t perform that action at this time.
0 commit comments