Skip to main content

extra formatter for snapshottest

Project description

snapshottest_ext

extra formatter for snapshottest

Usage

# use with pytest
import pandas as pd
from snapshottest_ext.dataframe  import PandasSnapshot

def test_format(snapshot):
    df = pd.DataFrame([['a', 'b'], ['c', 'd']],
                      columns=['col 1', 'col 2'])
    snapshot.assert_match(PandasSnapshot(df))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snapshottest_ext-0.8.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file snapshottest_ext-0.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for snapshottest_ext-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 420d762af43e38bab1669fd9f65514616d841dde0a324ccc8eb5c7562ee923a6
MD5 71ca5abe6496a1389810e21eacabad5a
BLAKE2b-256 b5837a95db6258157677302f0039ea137c1cf47420cd82a804be67bc2c83cee2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page