question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python unit tests fail with new proto files

See original GitHub issue

In 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

  1. Re-generate python files with cd protos; make gen-python
  2. 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
IraOcommented, Apr 8, 2020

@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)

2reactions
Basma-Elsaifycommented, Apr 21, 2020

@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” _

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found