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
bbd-table-parser-0.0.1.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for bbd_table_parser-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b001230cf8622ebe7c3f4889e70da2a1f18e2db4a9bded5467137b8bc0d33a52 |
|
MD5 | 40682d093ef6cfe825e2c9c5d9f2d020 |
|
BLAKE2b-256 | d5b62fa9016d7675724a4f0e00a15c5d8cc64e6b057809b6502cfdd8a28efead |