【发布时间】:2013-10-19 19:01:03
【问题描述】:
我正在尝试为 Pandas 项目贡献一些代码。当我在我的测试文件上运行鼻子测试时,我收到了这个错误:
import apiclient.discovery as gapi
ImportError: No module named discovery
我的测试代码是这样的:
import unittest
from pandas.io.ga import GAnalytics
class TestGoogleSegments(unittest.TestCase):
def test_v3_segment_query_creation(self):
GAnalytics.format_query()
assert False
我还看到在 io 模块中的其他测试上运行鼻子测试会导致许多跳过的测试。我假设这是由同样的问题引起的。
我在 iPython 中运行时遇到了同样的问题。
我怎样才能让它运行?
【问题讨论】:
标签: python google-analytics pandas