basilisp.test.fixtures¶
Built-in fixtures which may be useful in Basilisp tests.
- macro (reset-attribute attr)[source]¶
Test fixture to reset an attribute back to the value it referenced before the fixture was applied. Note: if the original value has mutated these mutations will not be undo.
- fn (reset-environment)[source]¶
Test fixture to reset
os.environback to its original state after a test run.
- fn (reset-path)[source]¶
Test fixture to reset
sys.pathback to its original state after a test run.
- fn (tempdir)[source]¶
basilisp.testfixture which creates a temporary directory for the duration of the test.The temporary directory name is bound to the dynamic Var
*tempdir*.