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:
gryf committed 2018-07-16 16:11:27 +02:00
1 parent db8527e9af
commit 93b0bc2dd7
5 files changed
+46 -5

No files matched your search

+6 -3
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})