Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,11 @@
os.environ['HOME'] = os.path.join(SESSION_SANDBOX, 'home')
os.makedirs(os.environ['HOME'], exist_ok=True)

# The CLI reads these through click's envvar= (see main.py), so a developer with
# either exported -- which is exactly what the README suggests for day-to-day use
# -- changes what the tests observe. SP_BASE_URL made a precedence test fail; a
# real SP_API_TOKEN would quietly become test input. Drop both.
for _leaking in ('SP_BASE_URL', 'SP_API_TOKEN'):
os.environ.pop(_leaking, None)

atexit.register(shutil.rmtree, SESSION_SANDBOX, True)
Loading