fix tests for transports
This commit is contained in:
parent
8cc4f18a5e
commit
26d4fa536b
@ -34,6 +34,12 @@ class BaseResourceTest(unittest.TestCase):
|
|||||||
|
|
||||||
def make_resource_meta(self, meta_yaml):
|
def make_resource_meta(self, meta_yaml):
|
||||||
meta = yaml.load(meta_yaml)
|
meta = yaml.load(meta_yaml)
|
||||||
|
inps = meta['input']
|
||||||
|
# automaticaly add location_id
|
||||||
|
inps.setdefault('location_id', {'value': '$uuid',
|
||||||
|
'reverse': True,
|
||||||
|
'schema': 'str!'})
|
||||||
|
meta_yaml = yaml.dump(meta)
|
||||||
|
|
||||||
path = os.path.join(self.storage_dir, meta['id'])
|
path = os.path.join(self.storage_dir, meta['id'])
|
||||||
os.makedirs(path)
|
os.makedirs(path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user