Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mhlz opened this issue Apr 12, 2021 · 0 comments
Open

Comments

@mhlz
Copy link

mhlz commented Apr 12, 2021

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 mhlz changed the title Running integration tests locally Running integration tests locally doesn't work ("tap_tester" is missing) Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant