MCPcopy Create free account
hub / github.com/python-arq/arq / SetEnv

Class SetEnv

tests/conftest.py:165–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163
164
165class SetEnv:
166 def __init__(self):
167 self.envars = set()
168
169 def set(self, name, value):
170 self.envars.add(name)
171 os.environ[name] = value
172
173 def clear(self):
174 for n in self.envars:
175 os.environ.pop(n)
176
177
178@pytest.fixture

Callers 1

envFunction · 0.85

Calls

no outgoing calls

Tested by 1

envFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…