MCPcopy Index your code
hub / github.com/bpython/bpython / setUpClass

Method setUpClass

bpython/test/test_curtsies_painting.py:37–47  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

35class ClearEnviron(TestCase):
36 @classmethod
37 def setUpClass(cls):
38 cls.mock_environ = mock.patch.dict(
39 "os.environ",
40 {
41 "LC_ALL": os.environ.get("LC_ALL", "C.UTF-8"),
42 "LANG": os.environ.get("LANG", "C.UTF-8"),
43 },
44 clear=True,
45 )
46 cls.mock_environ.start()
47 TestCase.setUpClass()
48
49 @classmethod
50 def tearDownClass(cls):

Callers

nothing calls this directly

Calls 1

startMethod · 0.80

Tested by

no test coverage detected