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

Unable to run test suite #26

Open
daniel-ferguson opened this issue Dec 29, 2021 · 1 comment
Open

Unable to run test suite #26

daniel-ferguson opened this issue Dec 29, 2021 · 1 comment

Comments

@daniel-ferguson
Copy link

While writing up #25 I wanted to get the project up and running locally. I managed to run the tests under tests/unittests but was unable to run any of the tests at the top-level under tests/. An example of what I tried and the error message I got:

> cd tests && python -m unittest test_yotpo_sync_canary.py
E
======================================================================
ERROR: test_yotpo_sync_canary (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_yotpo_sync_canary
Traceback (most recent call last):
  File "/home/daniel/.pyenv/versions/3.9.9/lib/python3.9/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/home/daniel/Code/tap-yotpo/tests/test_yotpo_sync_canary.py", line 1, in <module>
    from tap_tester import connections
ModuleNotFoundError: No module named 'tap_tester'


----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)

As far as I can tell the test suite depends on a module called tap_tester

from tap_tester import connections, menagerie, runner

This module isn't declared as a dependency in setup.py - nor is it vendored in this project. Is there somewhere I can find it? Am I trying to run tests on this project wrong?

@sgandhi1311
Copy link
Member

@daniel-ferguson
The tap_tester module is used to execute the integration test cases. This particular module is used internally by stitchdata.

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

2 participants