|
|
@@ -881,6 +881,10 @@ class TestDocument2ImportExport(object):
|
|
|
response = self.client.get('/desktop/api2/doc/export/', {'documents': json.dumps([workflow.id, workflow2.id])})
|
|
|
assert_equal(response['Content-Disposition'], 'attachment; filename=hue-documents-%s-(4).json' % datetime.today().strftime('%Y-%m-%d'))
|
|
|
|
|
|
+ # Test that exporting single file gets the name of the document in the filename
|
|
|
+ response = self.client.get('/desktop/api2/doc/export/', {'documents': json.dumps([workflow.id])})
|
|
|
+ assert_equal(response['Content-Disposition'], 'attachment; filename=' + workflow.name + '.json')
|
|
|
+
|
|
|
|
|
|
def test_export_directories_with_children(self):
|
|
|
# Test that exporting a directory exports children docs
|