Add missing Settings.write_initial_source property

This commit is contained in:
Paul Romano 2021-10-13 13:00:21 -05:00
parent c2fe6327e2
commit eca57538cd
2 changed files with 27 additions and 1 deletions

View file

@ -54,6 +54,7 @@ def test_export_to_xml(run_in_tmpdir):
s.log_grid_bins = 2000
s.photon_transport = False
s.electron_treatment = 'led'
s.write_initial_source = True
# Make sure exporting XML works
s.export_to_xml()
@ -110,3 +111,4 @@ def test_export_to_xml(run_in_tmpdir):
assert s.log_grid_bins == 2000
assert not s.photon_transport
assert s.electron_treatment == 'led'
assert s.write_initial_source == True