semvec/pypi-packages huggingface dataset:
pytest-mockservers 0.6.0
A set of fixtures to test your requests to HTTP/UDP servers
License: MIT
Requires Python: >=3.6,<4.0
Keywords: asyncio,pytest,plugin,http,upd,mock

# pytest-mockservers

[![Build Status](https://github.com/Gr1N/pytest-mockservers/workflows/default/badge.svg)](https://github.com/Gr1N/pytest-mockservers/actions?query=workflow%3Adefault) ![PyPI](https://img.shields.io/pypi/v/pytest-mockservers.svg?label=pypi%20version) ![PyPI - Downloads](https://img.shields.io/pypi/dm/pytest-mockservers.svg?label=pypi%20downloads) ![GitHub](https://img.shields.io/github/license/Gr1N/pytest-mockservers.svg)

`pytest-mockservers` package provides a set of fixtures which can help you to test your code in cases when you need to check that requests which you sent to HTTP/UDP server are really sent.

Available fixtures:

* `http_server`
* `http_server_factory`
* `unused_port`
* `unused_port_factory`
* `unused_udp_port`
* `unused_udp_port_factory`
* `udp_server_factory`

## Installation

```shell
$ pip install pytest-mockservers
```

## Usage

Look into `tests/*` to find real examples of `pytest-mockservers` fixtures usage.

## Contributing

To work on the `pytest-mockservers` codebase, you'll want to clone the project locally and install the required dependencies via [poetry](https://python-poetry.org):

```sh
$ git clone git@github.com:Gr1N/pytest-mockservers.git
$ make install
```

To run tests and linters use command below:

```sh
$ make lint && make test
```

If you want to run only tests or linters you can explicitly specify which test environment you want to run, e.g.:

```sh
$ make lint-black
```

## License

`pytest-mockservers` is licensed under the MIT license. See the license file for details.
django-tagging-autocomplete-new 0.6.3
Autocompletion for django-tagging. Rebuild for Django 2.2. Original by Ludwik Trammer.
License: MIT
Keywords: Django,Tags autocompletion

# django-tagging-autocomplete-new

![pypi](https://img.shields.io/pypi/v/django-tagging-autocomplete-new.svg)
![github_version](https://img.shields.io/github/release/grobivanovich/django-tagging-autocomplete-new.svg)
![license](https://img.shields.io/github/license/GrobIvanovich/django-tagging-autocomplete-new.svg)
![wheel](https://img.shields.io/pypi/wheel/django-tagging-autocomplete-new.svg)
![python](https://img.shields.io/pypi/pyversions/django-tagging-autocomplete-new.svg)

django-tagging-autocomplete-new is a jquery based autocomplete solution for
django-tagging.

This is fixed version of [django-tagging-autocomplete](https://github.com/ludwiktrammer/django-tagging-autocomplete) by [@ludwiktrammer](https://github.com/ludwiktrammer/) for Django 2.2.

### Requirements

```python
django-tagging
```

### Setup

1. Install package from PyPI:
```python
pip install django-tagging-autocomplete-new
```
2. Add `tagging` and `tagging-autocomplete-new` to installed apps in your's project's settings:
```python
INSTALLED_APPS = [
    ...
    'tagging',
    'tagging_autocomplete_new',
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.sites',
    'django.contrib.staticfiles',
    ...
]
```
3. Add route to your project's `urls.py` file:
```python
path('tagging_autocomplete_new/', include('tagging_autocomplete_new.urls'))
```

### Usage

#### The Model Field

You can use `TagAutocompleteField()` to enable autocompletion right in your
`models.py`. In most cases this is the easiest solution:
```python
    from django.db import models
    from tagging_autocomplete_new.models import TagAutocompleteField

    class SomeModel(models.Model):
            tags = TagAutocompleteField()
```

#### The Form Widget

Alternatively you can use the `TagAutocomplete()` form widget while creating
your form:
```python
    from django import forms
    from tagging.forms import TagField
    from tagging_autocomplete_new.widgets import TagAutocomplete

    class SomeForm(forms.Form):
        tags = TagField(widget=TagAutocomplete())
```

#### Optional settings

By default the maximum number of results suggested by the autocompletion is 100.
You can modify this number by adding to your `settings.py` project file
the `TAGGING_AUTOCOMPLETE_MAX_RESULTS` constant.
For example:
```python
    TAGGING_AUTOCOMPLETE_MAX_RESULTS = 5
```

By default autocompletion suggests tags that *start with* a given term.
In case you need to show ones that *contain* the given term,
set `TAGGING_AUTOCOMPLETE_SEARCH_CONTAINS` to `True`.
For example:
```python
    TAGGING_AUTOCOMPLETE_SEARCH_CONTAINS = True
```
By default suggestions are shown right after you enter first character.
You can configure this behaviour using `TAGGING_AUTOCOMPLETE_MIN_LENGTH`.
For example:
```python
    TAGGING_AUTOCOMPLETE_MIN_LENGTH = 3
```