Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 343 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 343 Bytes

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))