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

Function assert_status_unchanged

gitless/tests/test_core.py:83–87  ·  view source on GitHub ↗

Decorator that fails the test if the status of fp changed.

(*fps)

Source from the content-addressed store, hash-verified

81
82
83def assert_status_unchanged(*fps):
84 """Decorator that fails the test if the status of fp changed."""
85 def prop(self, *args, **kwargs):
86 return self.curr_b.status_file
87 return __assert_decorator('Status', prop, *fps)
88
89
90def assert_no_side_effects(*fps):

Callers

nothing calls this directly

Calls 1

__assert_decoratorFunction · 0.85

Tested by

no test coverage detected