forked from retoor/devplacepy
fix: correct "bugs" to "issues" in routing table and README references across multiple documentation files
This commit is contained in:
@@ -157,9 +157,10 @@ def test_record_never_raises(monkeypatch):
|
||||
raise RuntimeError("db exploded")
|
||||
|
||||
monkeypatch.setattr(store, "insert_event", boom)
|
||||
# must swallow the error and return None rather than propagate
|
||||
assert audit.record_system("test.unit.raise", actor_kind="system") is None
|
||||
assert audit.record(None, "test.unit.raise2", user=None) is None
|
||||
# persistence is deferred to the background task queue (inline under tests); a
|
||||
# failing write is swallowed there and must never propagate into the caller
|
||||
audit.record_system("test.unit.raise", actor_kind="system")
|
||||
audit.record(None, "test.unit.raise2", user=None)
|
||||
|
||||
|
||||
def test_record_with_none_request_uses_explicit_user():
|
||||
|
||||
Reference in New Issue
Block a user