MCPcopy Create free account
hub / github.com/gitless-vcs/gitless / assert_contents_unchanged

Function assert_contents_unchanged

gitless/tests/test_core.py:76–80  ·  view source on GitHub ↗

Decorator that fails the test if the contents of the file fp changed.

(*fps)

Source from the content-addressed store, hash-verified

74
75
76def assert_contents_unchanged(*fps):
77 """Decorator that fails the test if the contents of the file fp changed."""
78 def prop(*args, **kwargs):
79 return utils_lib.read_file
80 return __assert_decorator('Contents', prop, *fps)
81
82
83def assert_status_unchanged(*fps):

Callers

nothing calls this directly

Calls 1

__assert_decoratorFunction · 0.85

Tested by

no test coverage detected