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

Changing the way how arguments are passed

This commit is contained in:
2016-11-23 22:00:39 +01:00
parent bea61d3b45
commit 87f6eb4d3a
3 changed files with 39 additions and 22 deletions

View File

@@ -351,8 +351,9 @@ class FakeArgs(object):
user = 'fake_user'
password = 'fake_password'
team = 'fake_team'
dbfilename = None
database = None
channels = None
assets = 'assets'
class TestApiCalls(TestCase):
@@ -421,7 +422,7 @@ class TestMessage(TestCase):
args.channels = ['general']
self.cl = client.Client(args)
self.cl.dld.authorize = MagicMock()
self.cl.downloader.authorize = MagicMock()
self.cl.slack.api_call = MagicMock(return_value=USERS)
self.cl.update_users()