def test_lyrics1(): app.test_mode() app.handle_command('/lyrics backbone by gojira', 0)
def test_handle_command_testcase_success(self): with mock.patch("app.emit_all_messages", self.mock_emit_all_messages), mock.patch("models.Texts", self.mock_models_Texts), \ mock.patch("sqlalchemy.orm.scoping.scoped_session.add", self.mock_session_add), mock.patch("sqlalchemy.orm.scoping.scoped_session.commit", self.mock_session_commit),\ mock.patch("app.chuck", self.mock_chuck), mock.patch("app.funtranslate", self.mock_funtranslate): for testcase in self.success_test_params: handle_command(testcase[KEY_INPUT])
def test_wiki2(): app.test_mode() app.handle_command('/wiki battery', 0)
def test_wiki3(): app.test_mode() app.handle_command('/wiki asdhajshdkhwirqwiofhaishd', 0)
def test_no_command(): app.test_mode() assert app.handle_command('peanut', 0) == False
def test_wiki1(): app.test_mode() app.handle_command('/wiki metallica', 0)
def test_animelyrics_no_lyrics(): app.test_mode() app.handle_command('/animelyrics omgwtfbbq', 0)
def test_animelyrics(): app.test_mode() app.handle_command('/animelyrics renai circulation', 0)
def test_lyrics4(): app.test_mode() app.handle_command( '/lyrics asdwqjwodjaosjdoqjwodjaosd by qiwjdoijasidjoqiwjdoiajsodijqwd', 0)
def test_lyrics3(): app.test_mode() app.handle_command('/lyrics asdwqjwodjaosjdoqjwodjaosd', 0)
def test_lyrics2(): app.test_mode() app.handle_command('/lyrics Rapid Elemental Dissolve', 0)