MCPcopy Create free account
hub / github.com/grapeot/devin.cursorrules / setUp

Method setUp

tests/test_search_engine.py:8–15  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6
7class TestSearchEngine(unittest.TestCase):
8 def setUp(self):
9 # Capture stdout and stderr for testing
10 self.stdout = StringIO()
11 self.stderr = StringIO()
12 self.old_stdout = sys.stdout
13 self.old_stderr = sys.stderr
14 sys.stdout = self.stdout
15 sys.stderr = self.stderr
16
17 def tearDown(self):
18 # Restore stdout and stderr

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected