Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
01-06-2023 07:49 AM
I'm trying to run the first exercise in the course and I can't get this to run:
pytest tests/01_connect_to_neo4j__test.py
I get:
MM226508-PC:app-python-main morawski$ pytest tests/01_connect_to_neo4j__test.py
-bash: pytest: command not found
Any help appreciated,
Paul
01-06-2023 12:28 PM
Jalakoo --
Odd. I just tried rerunning it and I got this:
(neoflix) MM226508-PC:app-python-main morawski$ pytest tests/01_connect_to_neo4j__test.py
=============================================== test session starts ===============================================
platform darwin -- Python 3.9.4, pytest-7.1.3, pluggy-1.0.0
rootdir: /Users/morawski/Documents/Neo4jPythonClass/app-python-main
collected 4 items
tests/01_connect_to_neo4j__test.py .... [100%]
================================================ 4 passed in 0.17s ================================================
Does this indicate a successful outcome?
Thanks,
Paul
01-06-2023 02:21 PM
Yup, that's the result I get. Glad it's working for you now. If you figure out what the hiccup was, post here. Curious to know what the cause was.
01-09-2023 05:54 AM
Jalakoo --
It is clear that I don't understand the role of flask and how to use it. It appears that my problem was trying to run the pytest command from a different shell session on the same machine, rather than the shell where flask was started.
Thanks for your help. Any insights into how to use and control flask would be appreciated.
Paul
01-09-2023 07:08 AM
Sounds like a perfectly reasonable mistake to make. Thanks for tracking that down!
All the sessions of the conference are now available online