mirror of
https://github.com/gryf/slack-backup.git
synced 2025-12-17 19:40:21 +01:00
Added implementation for url_file_attachment option.
Using url_file_attachment user can specify if he like to change objects like 'file_share' marked as external (in Slack servers point of view) to attachments, so the only value would be remembered URL for the "uploaded" document as an attachment. Or, treat it as is, and let the slack-backup to produce file which contain the URLs and corresponding local file names for such files.
This commit is contained in:
@@ -64,7 +64,7 @@ class TestConfig(unittest.TestCase):
|
||||
'password': None,
|
||||
'team': None,
|
||||
'token': None,
|
||||
'url_file_to_attachement': False})
|
||||
'url_file_to_attachment': False})
|
||||
|
||||
args = argparse.Namespace()
|
||||
args.config = self.confname
|
||||
@@ -99,7 +99,7 @@ class TestConfig(unittest.TestCase):
|
||||
'token': 'xxxx-1111111111-'
|
||||
'222222222222-333333333333-'
|
||||
'r4nd0ms7uff',
|
||||
'url_file_to_attachement': False})
|
||||
'url_file_to_attachment': False})
|
||||
|
||||
# override some conf options with commandline
|
||||
args = argparse.Namespace()
|
||||
@@ -127,4 +127,4 @@ class TestConfig(unittest.TestCase):
|
||||
'password': 'ultricies',
|
||||
'team': '',
|
||||
'token': 'the token',
|
||||
'url_file_to_attachement': False})
|
||||
'url_file_to_attachment': False})
|
||||
|
||||
Reference in New Issue
Block a user