~awuerl/blitzortung-python/master

« back to all changes in this revision

Viewing changes to tests/test_dataimport.py

  • Committer: Andreas Würl
  • Date: 2016-09-14 20:39:51 UTC
  • mto: This revision was merged to the branch mainline in revision 392.
  • Revision ID: git-v1:0577158d36adaee55ba3f8a63918b601e8a4edd4
remove pandas dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
import unittest
23
23
import datetime
24
24
from nose.tools import raises
25
 
import pandas as pd
26
25
 
27
26
from hamcrest.library.collection.is_empty import empty
28
27
from mock import Mock, patch, call
151
150
        self.data_provider.read_lines.side_effect = [[strike_data1, strike_data2], []]
152
151
        strike1 = Mock()
153
152
        strike2 = Mock()
154
 
        strike1.timestamp = pd.Timestamp(now - datetime.timedelta(hours=2))
155
 
        strike2.timestamp = pd.Timestamp(now)
 
153
        strike1.timestamp = blitzortung.data.Timestamp(now - datetime.timedelta(hours=2))
 
154
        strike2.timestamp = blitzortung.data.Timestamp(now)
156
155
        self.builder.from_line.return_value = self.builder
157
156
        self.builder.build.side_effect = [strike1, strike2]
158
157