Coverage for src/inline_snapshot_pandas/__init__.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-08-21 21:53 +0200

1from pandas.testing import assert_frame_equal 

2from pandas.testing import assert_index_equal 

3from pandas.testing import assert_series_equal 

4 

5 

6def setup(): 

7 pass 

8 

9 

10def snapshot(value=None): 

11 assert ( 

12 value is not None 

13 ), """\ 

14This version of inline-snapshot-pandas provides only limited snapshot support. 

15All functions are implemented as noop's, which allows the execution of tests for non-insider users. 

16 

17The full feature set is currently only available for insiders and can not be installed from PyPI. 

18 

19You have to become a sponsor first: 

20 

21 https://github.com/sponsors/15r10nk 

22 

23and can then install the library from the private github repo: 

24 

25 https://github.com:15r10nk-insiders/inline-snapshot-pandas.git 

26""" 

27 return value 

28 

29 

30__all__ = ( 

31 "assert_frame_equal", 

32 "assert_index_equal", 

33 "assert_series_equal", 

34 "setup", 

35 "snapshot", 

36)