basilisp.test.fixtures

Built-in fixtures which may be useful in Basilisp tests.

dynamic Var *tempdir*[source]

Name of a temporary directory value bound by the fixture tempdir.

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.environ back to its original state after a test run.

fn (reset-path)[source]

Test fixture to reset sys.path back to its original state after a test run.

fn (tempdir)[source]

basilisp.test fixture which creates a temporary directory for the duration of the test.

The temporary directory name is bound to the dynamic Var *tempdir*.