Some checks failed
Build / Test on ubuntu-latest (push) Successful in 2m4s
Examples / Test examples (ubuntu-latest, 3.10) (push) Successful in 2m16s
Lint / lint (push) Successful in 1m25s
Build / Test on macOS-latest (push) Has been cancelled
Build / Test on windows-latest (push) Has been cancelled
CodeQL / Analyze (python) (push) Failing after 1s
13 lines
329 B
Python
13 lines
329 B
Python
import os
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def _clear_aw_profile_after_test():
|
|
"""export_profile() writes os.environ directly; monkeypatch.delenv does
|
|
not record an undo when the var was already unset, so later tests would
|
|
inherit a leftover profile."""
|
|
yield
|
|
os.environ.pop("AW_PROFILE", None)
|