Python unit tests fail with new proto files
See original GitHub issueIn our CI pipeline, we regenerate all sources rather than relying on committed files. This is causing master build failures since this commit: https://github.com/gojek/feast/pull/438
Expected Behavior
Build and tests pass
Current Behavior
Unit test python fails
Steps to reproduce
- Re-generate python files with
cd protos; make gen-python
- Run unit tests with
cd sdk/python; pip install -r requirements-ci.txt && pip install -e . && pytest --junitxml=python-sdk-test-report.xml
Specifications
latest master
Possible Solution
Add required dependencies to requirements. tensorflow_metadata?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Python unit tests fail with new proto files · Issue #448 - GitHub
In our CI pipeline, we regenerate all sources rather than relying on committed files. This is causing master build failures since this ...
Read more >unittest — Unit testing framework — Python 3.11.1 ...
Any exception, other than AssertionError or SkipTest , raised by this method will be considered an additional error rather than a test failure...
Read more >Test discovery failure when tests in different directories are ...
I run my tests against my development version of mypkg . This way the tests exist. I create __init__.py files to avoid this...
Read more >Getting Start With Unit Test for an HTTP REST Application with ...
This article shows how to run unit test cases for a Python application that performs HTTP REST operations.
Read more >Unit Testing in Python. Code Confidently and Break Stuff on…
A guide to getting started with unit testing in Python as well as some common hang-ups and practices.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@woop Hi, I tried to run the example notebook (basic.ipynb) but I got this error: “ModuleNotFoundError: No module named ‘feast.core’” at Step 2 (Import necessary modules)
@woop same for me “ModuleNotFoundError: No module named ‘feast.core’” whenever I try to import any feast module. _ I think I need to run “make compile-protos-python” _