tap-mongodb icon indicating copy to clipboard operation
tap-mongodb copied to clipboard

Running integration tests locally doesn't work ("tap_tester" is missing)

Open mhlz opened this issue 3 years ago • 0 comments

I'm currently trying to debug an issue that causes the mongodb tap to not pickup changes using the Oplog.

In order to do this I would like to run the integration tests locally on my machine, but that doesn't seem to be possible because the tap-tester module doesn't seem to be published anywhere.

Is there any documentation available how to make those run?

======================================================================
ERROR: Failure: ModuleNotFoundError (No module named 'tap_tester')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/mhlz/.virtualenvs/tap-mongodb/lib/python3.9/site-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/Users/mhlz/.virtualenvs/tap-mongodb/lib/python3.9/site-packages/nose/loader.py", line 417, in loadTestsFromName
    module = self.importer.importFromPath(
  File "/Users/mhlz/.virtualenvs/tap-mongodb/lib/python3.9/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/Users/mhlz/.virtualenvs/tap-mongodb/lib/python3.9/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/local/Cellar/[email protected]/3.9.2_4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/usr/local/Cellar/[email protected]/3.9.2_4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 711, in _load
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/Users/mhlz/homefully/tap-mongodb/tests/test_mongodb_projection.py", line 1, in <module>
    from tap_tester.scenario import (SCENARIOS)
ModuleNotFoundError: No module named 'tap_tester'

----------------------------------------------------------------------

mhlz avatar Apr 12 '21 13:04 mhlz