Skip to content

Commit

Permalink
fixed failing scene tests
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Nov 11, 2015
1 parent 4d4afb9 commit 47c3c0b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mpop/tests/test_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_init_with_filenames(self):
with mock.patch('mpop.scene.ReaderFinder') as findermock:
scene = Scene(filenames=filenames)
findermock.assert_called_once_with(scene)
findermock.return_value.assert_called_once_with(reader_name, sensors, filenames)
findermock.return_value.assert_called_once_with(reader_name=reader_name, sensor=sensors, filenames=filenames)

def test_init_with_empty_filenames(self):
from mpop.scene import Scene
Expand All @@ -54,7 +54,7 @@ def test_init_with_sensor(self):
with mock.patch('mpop.scene.ReaderFinder') as findermock:
scene = Scene(sensor=sensors)
findermock.assert_called_once_with(scene)
findermock.return_value.assert_called_once_with(reader_name, sensors, filenames)
findermock.return_value.assert_called_once_with(reader_name=reader_name, sensor=sensors, filenames=filenames)

def test_init_with_sensor_and_filenames(self):
from mpop.scene import Scene
Expand All @@ -64,7 +64,7 @@ def test_init_with_sensor_and_filenames(self):
with mock.patch('mpop.scene.ReaderFinder') as findermock:
scene = Scene(sensor=sensors, filenames=filenames)
findermock.assert_called_once_with(scene)
findermock.return_value.assert_called_once_with(reader_name, sensors, filenames)
findermock.return_value.assert_called_once_with(reader_name=reader_name, sensor=sensors, filenames=filenames)

def test_init_with_reader(self):
from mpop.scene import Scene
Expand All @@ -74,7 +74,7 @@ def test_init_with_reader(self):
with mock.patch('mpop.scene.ReaderFinder') as findermock:
scene = Scene(reader_name=reader, filenames=filenames)
findermock.assert_called_once_with(scene)
findermock.return_value.assert_called_once_with(reader, sensors, filenames)
findermock.return_value.assert_called_once_with(reader_name=reader, sensor=sensors, filenames=filenames)

def test_init_alone(self):
from mpop.scene import Scene
Expand Down

0 comments on commit 47c3c0b

Please sign in to comment.