Skip to content

Commit

Permalink
Fix mock 2.7 error
Browse files Browse the repository at this point in the history
  • Loading branch information
rdaruwala committed May 3, 2019
1 parent 3457048 commit 9c72cbd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions satpy/tests/reader_tests/test_viirs_edr_active_fires.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import pandas as pd
from satpy.tests.reader_tests.test_netcdf_utils import FakeNetCDF4FileHandler
from satpy.readers.file_handlers import BaseFileHandler
from unittest.mock import patch

if sys.version_info < (2, 7):
import unittest2 as unittest
Expand Down Expand Up @@ -276,7 +275,7 @@ def test_load_dataset(self):
self.assertEqual(v.attrs['sensor'], 'VIIRS')


@patch('satpy.readers.viirs_edr_active_fires.dd.read_csv')
@mock.patch('satpy.readers.viirs_edr_active_fires.dd.read_csv')
class TestModVIIRSActiveFiresText(unittest.TestCase):
"""Test VIIRS Fires Reader"""
yaml_file = 'viirs_edr_active_fires.yaml'
Expand Down Expand Up @@ -331,7 +330,7 @@ def test_load_dataset(self, csv_mock):
self.assertEqual(v.attrs['sensor'], 'VIIRS')


@patch('satpy.readers.viirs_edr_active_fires.dd.read_csv')
@mock.patch('satpy.readers.viirs_edr_active_fires.dd.read_csv')
class TestImgVIIRSActiveFiresText(unittest.TestCase):
"""Test VIIRS Fires Reader"""
yaml_file = 'viirs_edr_active_fires.yaml'
Expand Down

0 comments on commit 9c72cbd

Please sign in to comment.