semvec/pypi-packages huggingface dataset:
pytest-simplehttpserver 0.1.2
Simple pytest fixture to spin up an HTTP server
License: MIT
Requires Python: >=3.5

# pytest-simplehttpserver

Simple fixture to spin up a simple HTTP server to serve static files for testing.

Can be used for testing web scrapers, etc.

Features
--------

* The fixture spins up a HTTP server that serves static files on port 8000.

Usage
-----

When running your tests you need to point pytest-simplehttpserver to root
directory with the static files you want to serve:


```shell
$ pytest --simplehttpserver-directory /home/user/mock_website/
```

In your code, just pass the fixture to your tests:

```python
import requests

def mytest(simplehttpserver):
    response = requests.get('http://localhost:8000/')
    assert response.status_code == 200
```


Installation
------------

You can install "pytest-simplehttpserver" via pip from PyPI:

```shell
$ pip install pytest-simplehttpserver
```

Contributing
------------
Contributions are very welcome. Tests can be run with pytest, please ensure
the coverage at least stays the same before you submit a pull request.

License
-------

Distributed under the terms of the MIT license, "pytest-simplehttpserver" is free and open source software
discord-slash-components 0.0.2
Use both discord-py-slash-command and discord-components!
License: MIT
Requires Python: >=3.7

## Discord-slash-components
[discord-py-slash-command](https://github.com/discord-py-slash-commands/discord-py-slash-command) and [discord-components](https://pypi.org/project/discord-components/) are cool, but they don't support each other. So I've made a connector between them. So if you want to use both librarys, use this!

And [discord-py-slash-command](https://github.com/discord-py-slash-commands/discord-py-slash-command) supports components on their components branch so you could use them 👍