dpytest

A package that assists in writing tests for discord.py

MIT License

Downloads
3K
Stars
102
Committers
22

Bot releases are visible (Hide)

dpytest - v0.7.0 Latest Release

Published by github-actions[bot] over 1 year ago

⚠️ Warning ⚠️:

This can be breaking :

The configure function has changed.
It nows accepts either an int (like in the previous version) OR a list of string for the parameters guilds, text_channels, voice_channels and members.
But the names of the parameters had to be changed.

num_guilds, num_text_channels, num_voice_channels, num_members are DERECATED.

Example:

    dpytest.configure(bot,
                      guilds=["CoolGuild", "LameGuild"],
                      text_channels=["Fruits", "Videogames"],
                      voice_channels=2,
                      members=["Joe", "Jack", "William", "Averell"])

Other changes:

  • fixes in typing
  • add content_type to dict_from_attachment()
dpytest - v0.6.8

Published by github-actions[bot] over 1 year ago

discord.py 2.3

dpytest - v0.6.5

Published by github-actions[bot] over 1 year ago

This release allows testing with Voice Channels.

New :

  • FakeVoiceChannel and FakeVoiceClient classes implemetation
  • New tests

Changes :

  • create_channel method can create voice channel

⚠️ Warning ⚠️:

This can be breaking :

the configure() function DOESN'T take the keyword parameter num_channels anymore, but instead :
num_text_channels and num_voice_channels

dpytest - v0.6.6

Published by github-actions[bot] over 1 year ago

Changes in this Release

  • Support asyncio tasks that have no __name__
dpytest - v0.6.7

Published by github-actions[bot] over 1 year ago

Changes in this Release

  • Fix bug in channel_history
  • Fix issue #111
dpytest - v0.6.4

Published by github-actions[bot] over 1 year ago

Changes in this Release

  • Fix: edit message doesn't update message queue
  • Refactor __init__.py import to be explicit exports as per PEP 484
dpytest - v0.6.3

Published by github-actions[bot] over 1 year ago

Changes in this Release

  • Update requirements for discord.py 2.2.2
dpytest - v0.6.2

Published by github-actions[bot] over 1 year ago

Changes in this Release

  • Fix factories for Member for the "flags" issue new in discord.py 2.2.0
dpytest - v0.6.1

Published by github-actions[bot] almost 2 years ago

Changes in this Release

  • Lint to pass flake8 CI/CD
dpytest - v0.6.0

Published by github-actions[bot] almost 2 years ago

Changes in this Release

  • First version for working with dpytest>=2.X.X
    Changes have been made in backend, factories, websocket
  • Change the README
  • Change the setup.py for python >= 3.8
  • Changing in doc
dpytest - v0.5.3

Published by github-actions[bot] over 3 years ago

Changes in this Release

  • Docs: Add vertical spacing for functions & methods
  • Fix behaviour 'discord.Role.edit' with hoist, mentionable, etc.
dpytest - v0.5.2

Published by github-actions[bot] over 3 years ago

Changes in this Release

  • Get member mentions by using the user ID in mention
dpytest - v0.5.1

Published by github-actions[bot] over 3 years ago

Changes in this Release

  • NEW methods : Pins, get_user, & clear_reactions
  • fix utils functions imports
dpytest - v0.5.0

Published by github-actions[bot] over 3 years ago

Changes in this Release

  • Remove the runner verification methods, replace them with verification builders
dpytest - v0.4.0

Published by github-actions[bot] over 3 years ago

Changes in this Release

  • Rename simulate_reaction -> add_reaction and make it take a user to react as
dpytest - v0.2.0

Published by github-actions[bot] over 3 years ago

Changes in this Release

  • Merge hint files into .py files
  • Use typing export of Pattern
dpytest - v0.1.1

Published by github-actions[bot] over 3 years ago

Changes in this Release

  • Add content type to attachments
  • Overwrite _guild_needs_chunking (fix for asyncio wait_for errors)
dpytest - v0.1.0

Published by Sergeileduc over 3 years ago

  • Bump version for clarity (support of 1.7.1)
  • Bug fix with role_mentions=None being not iterable.
dpytest - 0.0.23

Published by Sergeileduc over 3 years ago

  • Support for discord.py 1.7.1
  • Attachments allowed on messages
  • verify_embed without test fixed
  • Add members intent
  • Added more testing
dpytest - All the Docs

Published by CraftSpider over 4 years ago

As of this version, dpytest now has a readthedocs, as well as travis tests. Also included:

  • DMChannel support
  • Better mentions