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

Function decorator

gitless/tests/test_core.py:92–98  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

90def assert_no_side_effects(*fps):
91 """Decorator that fails the test if the contents or status of fp changed."""
92 def decorator(f):
93 @assert_contents_unchanged(*fps)
94 @assert_status_unchanged(*fps)
95 @wraps(f)
96 def wrapper(*args, **kwargs):
97 f(*args, **kwargs)
98 return wrapper
99 return decorator
100
101

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected