Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setUp(self):
self._tmp_dir = os.path.join(tempfile.gettempdir(), "opsdroid_tests")
with contextlib.suppress(FileExistsError):
os.makedirs(self._tmp_dir, mode=0o777)
configure_lang({})
def setUp(self):
self.loop = asyncio.new_event_loop()
configure_lang({})
def setUp(self):
opsdroid = amock.CoroutineMock()
configure_lang({})
self.connector = ConnectorGitHub(
{"name": "github", "token": "test"}, opsdroid=opsdroid
)
def setUp(self):
self.loop = asyncio.new_event_loop()
configure_lang({})
def setup(self):
configure_lang({})
opsdroid = mock.MagicMock()
loader = ld.Loader(opsdroid)
return opsdroid, loader
def setUp(self):
opsdroid = amock.CoroutineMock()
configure_lang({})
self.connector = ConnectorGitter(
{"bot-name": "github", "room-id": "test-id", "token": "test-token"},
opsdroid=opsdroid,
)
with amock.patch("aiohttp.ClientSession") as mocked_session:
self.connector.session = mocked_session
def setup(self):
configure_lang({})
opsdroid = mock.MagicMock()
loader = ld.Loader(opsdroid)
return opsdroid, loader
def setUp(self):
configure_lang({})
self.connector = RocketChat(
{
"name": "rocket.chat",
"token": "test",
"user-id": "userID",
"default_target": "test",
},
opsdroid=OpsDroid(),
)
self.connector.latest_update = "2018-10-08T12:57:37.126Z"
with amock.patch("aiohttp.ClientSession") as mocked_session:
self.connector.session = mocked_session
def setUp(self):
self.loop = asyncio.new_event_loop()
configure_lang({})
def setUp(self):
self._tmp_dir = os.path.join(tempfile.gettempdir(), "opsdroid_tests")
with contextlib.suppress(FileExistsError):
os.makedirs(self._tmp_dir, mode=0o777)
configure_lang({})