semvec/pypi-packages huggingface dataset:
simple-rest-server 1.0.5
simple rest server based on flask, useful for rest rest integration testing
License: MIT
Requires Python: >=3.6

# simple rest server
An easy and simple way to test api flows. 

### test method example

```python
def test_mock_with_callback(server):
    # Arrange
    payload = "poop"
    url = "/test"
    server.add_callback_response(url, lambda : payload)

    # Act
    response = requests.get(server.base_url + url)

    # Assert
    assert 200 == response.status_code
    assert payload == response.data.decode()

```