Package to parse inline tables for use with pytest-bdd.
Project description
Table Parser
Intended to be used with pytest_bdd for parsing inline tables from str into dict
Example:
Given I have a thing
When I do stuff:
| Heading | Other Heading |
| to do | Also |
| more | Other |
Then everything is great
from pytest_bdd import when, parsers
from table_parser.table_parser import table_parser
@when(parsers.cfparse('I do stuff:\n{table}'))
def verify_date_from_request(table):
table_dict = table_parser(table)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bbd-table-parser-0.0.1.tar.gz.
File metadata
- Download URL: bbd-table-parser-0.0.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d390d3d4c58e6f966bb9a672b3b51fa5cd9a0b5a074845fb9ff73e04c7bb7bb9
|
|
| MD5 |
5a6aecd021f72cb237d99aaae6b14217
|
|
| BLAKE2b-256 |
a78330e12096a601ee637796f3ac4b08c234b6b701a95f20cc195ea3bf51b8f6
|
File details
Details for the file bbd_table_parser-0.0.1-py3-none-any.whl.
File metadata
- Download URL: bbd_table_parser-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b001230cf8622ebe7c3f4889e70da2a1f18e2db4a9bded5467137b8bc0d33a52
|
|
| MD5 |
40682d093ef6cfe825e2c9c5d9f2d020
|
|
| BLAKE2b-256 |
d5b62fa9016d7675724a4f0e00a15c5d8cc64e6b057809b6502cfdd8a28efead
|