Skip to content

Commit

Permalink
Fixed test_simulation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mghosh00 committed Nov 26, 2024
1 parent 939c9a6 commit 37029ed
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def test_configure(self, mock_mkdir):
del test_sim.ih_infectiousness_writer
del test_sim.secondary_infections_writer
del test_sim.serial_interval_writer
mo.assert_called_with(filename, 'w')
mo.assert_called_with(filename, 'w', newline='')

@patch('os.makedirs')
@patch('logging.warning')
Expand Down Expand Up @@ -141,7 +141,7 @@ def test_configure_ih_status(self, mock_mkdir):
del test_sim.ih_infectiousness_writer
del test_sim.secondary_infections_writer
del test_sim.serial_interval_writer
mo.assert_called_with(filename, 'w')
mo.assert_called_with(filename, 'w', newline='')

@patch('os.makedirs')
def test_configure_ih_infectiousness(self, mock_mkdir):
Expand Down Expand Up @@ -173,7 +173,7 @@ def test_configure_ih_infectiousness(self, mock_mkdir):
del test_sim.ih_infectiousness_writer
del test_sim.secondary_infections_writer
del test_sim.serial_interval_writer
mo.assert_called_with(filename, 'w')
mo.assert_called_with(filename, 'w', newline='')

@patch('os.makedirs')
def test_configure_secondary_infections(self, mock_mkdir):
Expand Down Expand Up @@ -206,7 +206,7 @@ def test_configure_secondary_infections(self, mock_mkdir):
del test_sim.ih_infectiousness_writer
del test_sim.secondary_infections_writer
del test_sim.serial_interval_writer
mo.assert_called_with(filename, 'w')
mo.assert_called_with(filename, 'w', newline='')

@patch('os.makedirs')
def test_configure_serial_interval(self, mock_mkdir):
Expand Down Expand Up @@ -239,7 +239,7 @@ def test_configure_serial_interval(self, mock_mkdir):
del test_sim.ih_infectiousness_writer
del test_sim.secondary_infections_writer
del test_sim.serial_interval_writer
mo.assert_called_with(filename, 'w')
mo.assert_called_with(filename, 'w', newline='')

@patch('logging.exception')
@patch('os.path.join')
Expand Down

0 comments on commit 37029ed

Please sign in to comment.