pytest-builtin-types
pytest-builtin-types gives you prebuilt builtin data types for testing your own projects.
Key Features:
- Basic Types: Has a selection of fixtures with pre-built types such as
float,int,str, etc. - Basic Containers: Has a selection of fixtures with pre-built containers such as
dict,list,tupleetc. - Great Developer Experience: Being fully typed makes it great for editor support.
Installation
pip install pytest-builtin-types
Example
Basic Type
def test_float_type(float_1, float_2):
print(float_1) # 1.1
print(float_2) # 2.1
Basic Types
def test_basic_types(basic_types_1, basic_types_2):
print(basic_types_1) # {<class 'str'>: 'string1', <class 'int'>: 1, <class 'float'>: 1.1}
print(basic_types_2) # {<class 'str'>: 'string2', <class 'int'>: 2, <class 'float'>: 1.2}
Basic Containers
def test_container_types(basic_containers_1):
print(basic_containers_1)
# {<class 'list'>: ['string1', 1, 1.1], <class 'tuple'>: ('string1', 1, 1.1), <class 'set'>: {1, 'string1', 1.1},
# <class 'dict'>: {<class 'str'>: 'string1', <class 'int'>: 1, <class 'float'>: 1.1}}
Metadata
Release files for pytest-builtin-types 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest-builtin-types-1.2.tar.gz | 4.1 kB | Without provenance | Details for pytest-builtin-types-1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_builtin_types-1.2-py3-none-any.whl | Python 3 | none | any | Details for pytest_builtin_types-1.2-py3-none-any.whl |
Total release size: 8.6 kB
Release files / pytest-builtin-types-1.2.tar.gz
| Download URL | pytest-builtin-types-1.2.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6affd9ac613ca188e4f845827073546f692f1b3e1a704b0e25f72dd4fe896339
|
|
BLAKE2b-256 checksum How to use checksums |
981ad810b27ea61468704fe484d57e01ae11e395bd7c2315214afa53b0caecc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pytest_builtin_types-1.2-py3-none-any.whl
| Download URL | pytest_builtin_types-1.2-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
663d7978029e37661a1a9759d6baaf24e506f8a8487e7926bfd5db04436174e8
|
|
BLAKE2b-256 checksum How to use checksums |
b8b4851c19bee8d259ab943b6593db340ac2d7962177ef3a1e1f56b43c4345eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Security for pytest-builtin-types 1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.