resqpy.olio.uuid.switch_on_test_mode

resqpy.olio.uuid.switch_on_test_mode(seed=0)[source]

Causes subsequent calls to new_uid() to produce integer sequence starting from successor to seed.

Parameters

seed (integer, default 0) – The predecessor to the first uuid returned by subsequent calls to new_uuid()

Returns

None

Notes

call switch_off_test_mode() to reactivate normal behaviour; uuids generated whilst in test mode do not adhere to the iso standard; test mode is intended to allow replicatable behaviour for testing purposes