Hi! I wrote a test to <test_e2e.py> and I was wond...
# troubleshoot
f
Hi! I wrote a test to test_e2e.py and I was wondering if I should install pytest to run the tests or if there's another recommended way? Thank you in advance!
g
Hey Melinda! I'd work through this metadata-ingestion developing guide:
🙏 1
and then run the pytest command from inside the virtual environment you create!
👍 1
f
Thank you!! Have a great weekend
hi again blob wave I'm following the doc above and when trying to install dev requirements I get an error reading
File "setup.py" or "setup.cfg" not found.
Do you think this could be because I'm using python 3.9 and not 3.6?
g
try running those commands from the
metadata-ingestion
directory?
f
ahh.. yes thats it 🥵 thank you gabe!
🙌 1
Another question 😅 so while the test I wrote is passing, 3 other tests that I didn't write are failing. The failing tests are exactly the same as the ones in DH's repo -- should I just leave them as they are?
g
yeah.... strange...
I wouldn't worry
just leave them as is for now
which tests?
f
nevermind - solved issue! solution below test_ingestion_via_kafka, test_gms_search_dataset[covid-1], test_frontend_search_datasets[covid-1]
for the first test it recommended running
pip install 'acryl-datahub[datahub-kafka]'
and I did but all the requirements were already fulfilled. for the other two tests, it seems like it's expecting more than 1 result when querying covid but is getting 0.
omg.. so... I actually fixed the issue. I didn't have the lzma module for python downloaded and that was preventing certain tests from passing apparently 😳 I used
brew install xz && pyenv install 3.7.9