MCPcopy Create free account
hub / github.com/ipython/ipython / init

Method init

IPython/core/tests/test_profile.py:96–102  ·  view source on GitHub ↗
(self, startup_file, startup, test)

Source from the content-addressed store, hash-verified

94 shutil.rmtree(self.pd.location)
95
96 def init(self, startup_file, startup, test):
97 # write startup python file
98 with open(os.path.join(self.pd.startup_dir, startup_file), 'w') as f:
99 f.write(startup)
100 # write simple test file, to check that the startup file was run
101 with open(self.fname, 'w') as f:
102 f.write(test)
103
104 def validate(self, output):
105 tt.ipexec_validate(self.fname, output, '', options=self.options)

Callers 3

test_startup_pyMethod · 0.95
test_startup_ipyMethod · 0.95
init_ioMethod · 0.80

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected