def fixture_dice(): """Ficture for dice roll.""" from commands import dice commands = dice.alias() message = Message() kwargs = dict(user=message.user, channel=message.channel, message=message) myroll = dice.roll(**kwargs) return commands, myroll
def test_alias(): """Test alias functionality.""" from commands import dice commands = dice.alias() assert 'roll' in commands