projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
9964: Fix test and add secondaryFiles to test
[arvados.git]
/
sdk
/
cwl
/
tests
/
mock_discovery.py
1
# Copyright (C) The Arvados Authors. All rights reserved.
2
#
3
# SPDX-License-Identifier: Apache-2.0
4
5
import json
6
import arvados
7
8
_rootDesc = None
9
10
def get_rootDesc():
11
global _rootDesc
12
if not _rootDesc:
13
try:
14
_rootDesc = arvados.api('v1')._rootDesc
15
except ValueError:
16
raise Exception("Test requires an running API server to fetch discovery document")
17
return _rootDesc