Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 324 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 324 Bytes

snapshottest_ext

extra formatter for snapshottest

Usage

# use with pytest
import pandas as pd
from dataframe import PandasSnapshot
def test_format(snapshot):
    df = pd.DataFrame([['a', 'b'], ['c', 'd']],
                      columns=['col 1', 'col 2'])
    snapshot.assert_match(PandasSnapshot(df))