fab-user
[
Top
][
All Lists
]
Advanced
[Date Prev][
Date Next
][Thread Prev][
Thread Next
][
Date Index
][
Thread Index
]
[Fab-user] Isolating env for unittests?
From
:
Chris Spencer
Subject
:
[Fab-user] Isolating env for unittests?
Date
:
Thu, 9 Mar 2017 21:37:28 -0500
What's the best way to save and restore env?
I'm trying to unittest some custom Fabric tasks, and I'm having a real problem not-polluting the global env variable. I've tried things like:
tmp = env.copy()
...run test
env.clear()
env.update(tmp)
but I still get weird errors caused by left-over env keys from other tests.
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[Fab-user] Isolating env for unittests?
,
Chris Spencer
<=
Re: [Fab-user] Isolating env for unittests?
,
Carlos García
,
2017/03/10
Re: [Fab-user] Isolating env for unittests?
,
Azul
,
2017/03/10
Next by Date:
Re: [Fab-user] Isolating env for unittests?
Next by thread:
Re: [Fab-user] Isolating env for unittests?
Index(es):
Date
Thread