projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch '11423-cwl-collection-dir-ref' closes #11423
[arvados.git]
/
sdk
/
cwl
/
tests
/
mock_discovery.py
1
import json
2
import arvados
3
4
_rootDesc = None
5
6
def get_rootDesc():
7
global _rootDesc
8
if not _rootDesc:
9
try:
10
_rootDesc = arvados.api('v1')._rootDesc
11
except ValueError:
12
raise Exception("Test requires an running API server to fetch discovery document")
13
return _rootDesc