File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
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
14
+ from urllib . parse import urlparse
15
15
16
16
VERSION = "1.0.0"
17
17
@@ -49,13 +49,13 @@ def test_async(self):
49
49
url = resp .xml .xpath ("//@statusLocation" )[0 ]
50
50
51
51
# OWSlib only reads from URLs, not local files. So we need to read the response manually.
52
- p = Path (url [ 6 :] )
52
+ url = urlparse (url )
53
53
54
54
# Poll the process until it completes
55
55
total_time = 0
56
56
sleep_time = .01
57
57
while wps .status not in ["ProcessSucceeded" , "ProcessFailed" ]:
58
- resp = p . read_bytes ()
58
+ resp = client . get ( f' { url . path } ? { url . query } ' ). data
59
59
if resp :
60
60
wps .checkStatus (response = resp , sleepSecs = 0.01 )
61
61
else :
You can’t perform that action at this time.
0 commit comments