1
0
mirror of https://github.com/gryf/slack-backup.git synced 2025-12-17 03:20:25 +01:00

Added raw-dir option

This option can be used to debug slack API responses - if set,
slack-backup will dump all of the data as a JSON in provided direcotry.
This commit is contained in:
2018-07-16 16:11:23 +02:00
parent db8527e9af
commit 93b0bc2dd7
5 changed files with 46 additions and 5 deletions

View File

@@ -64,7 +64,8 @@ class TestConfig(unittest.TestCase):
'password': None,
'team': None,
'token': None,
'url_file_to_attachment': False})
'url_file_to_attachment': False,
'raw_dir': None})
args = argparse.Namespace()
args.config = self.confname
@@ -99,7 +100,8 @@ class TestConfig(unittest.TestCase):
'token': 'xxxx-1111111111-'
'222222222222-333333333333-'
'r4nd0ms7uff',
'url_file_to_attachment': False})
'url_file_to_attachment': False,
'raw_dir': None})
# override some conf options with commandline
args = argparse.Namespace()
@@ -127,4 +129,5 @@ class TestConfig(unittest.TestCase):
'password': 'ultricies',
'team': '',
'token': 'the token',
'url_file_to_attachment': False})
'url_file_to_attachment': False,
'raw_dir': None})