Metadata-Version: 2.1
Name: dpytest
Version: 0.6.7
Summary: A package that assists in writing tests for discord.py
Author-email: Rune Tynan <runetynan@gmail.com>
Maintainer: CraftSpider, Sergeileduc
License: The MIT License (MIT)
        
        Copyright (c) 2018-2019 CraftSpider
        
        Permission is hereby granted, free of charge, to any person obtaining a
        copy of this software and associated documentation files (the "Software"),
        to deal in the Software without restriction, including without limitation
        the rights to use, copy, modify, merge, publish, distribute, sublicense,
        and/or sell copies of the Software, and to permit persons to whom the
        Software is furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in
        all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
        OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
        FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
        DEALINGS IN THE SOFTWARE.
Project-URL: Homepage, https://github.com/CraftSpider/dpytest
Project-URL: Source, https://github.com/CraftSpider/dpytest
Project-URL: Bug Tracker, https://github.com/CraftSpider/dpytest/issues
Project-URL: Documentation, https://dpytest.readthedocs.io/
Keywords: discord,discord.py,test
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 3 - Alpha
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: discord.py (==2.2.3)
Requires-Dist: pytest
Requires-Dist: pytest-asyncio
Provides-Extra: dev
Requires-Dist: flake8 ; extra == 'dev'
Requires-Dist: invoke ; extra == 'dev'
Requires-Dist: build ; extra == 'dev'
Provides-Extra: doc
Requires-Dist: sphinx ; extra == 'doc'
Provides-Extra: test
Requires-Dist: pytest ; extra == 'test'
Requires-Dist: pytest-asyncio ; extra == 'test'

# dpytest

[![Test CI](https://github.com/CraftSpider/dpytest/actions/workflows/test-ci.yml/badge.svg)](https://github.com/CraftSpider/dpytest/actions/workflows/test-ci.yml)
[![Lint](https://github.com/CraftSpider/dpytest/actions/workflows/lint-ci.yml/badge.svg)](https://github.com/CraftSpider/dpytest/actions/workflows/lint-ci.yml)
[![Documentation Status](https://readthedocs.org/projects/dpytest/badge/?version=latest)](https://dpytest.readthedocs.io/en/latest/?badge=latest)
[![Discord Server](https://img.shields.io/discord/523301176309972993.svg?label=Support%20Discord)](https://discord.gg/aNe8DqAuxd)

This is a package to allow testing of discord.py.
It is only compatible with the rewrite version, and is still in alpha.
If using pytest, it is suggested to use pytest-asyncio for test running, otherwise the user will need
to provide their own async test runner.

## Notice

For discord.py 1.7.X, use `dpytest 0.5.3`

For discord.py 2.X.X, use `dpytest>=0.6`

## Documentation

Documentation can be found at [dpytest.readthedocs.io](https://dpytest.readthedocs.io/en/latest/), including examples and tutorials

# History

## 0.6.7

Fix bug in channel_history

Fix issue #111

## 0.6.6

Support asyncio tasks that have no \_\_name\_\_

## 0.6.5

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`

## 0.6.4

- Fix: edit message doesn't update message queue
- Refactor **init**.py import to be explicit exports as per PEP 484

## 0.6.3

- Update requirements for discord.py 2.2.2

## 0.6.2

This is the version for discord.py 2.2.0

- Embed equality check now checks for equality of fields.
- Fix members factories to add the "flags" key (necessary in 2.2.0)

## 0.6.1

- Linting

## 0.6.0

- 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

## 0.5.3

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

## 0.5.2

- Get member mentions by using the user ID in mention

## 0.5.1

- NEW methods : Pins, get_user, & clear_reactions
- fix utils functions imports

## 0.5.0

- Remove the runner verification methods, replace them with verification builders

## 0.4.0

- Rename simulate_reaction -> add_reaction and make it take a user to react as

## 0.3.0

- unrealease (error when bumping version)

## 0.2.0

- Merge hint files into .py files
- Use typing export of Pattern

## 0.1.1

- Add content type to attachments
- Overwrite _guild_needs_chunking (fix for asyncio wait_for errors)

## 0.1.0

- Bump version (sould have done that with 0.0.23, since many changes have been commited)
- Bug fix with role_mentions=None being not iterable.

## 0.0.23

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