PaulM
(Paul M)
January 6, 2023, 3:49pm
1
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
jalakoo
( Jalakoo)
January 6, 2023, 10:21pm
2
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.
jalakoo
( Jalakoo)
January 6, 2023, 5:12pm
3
@PaulM What was your output when you ran: `pip install -r requirements.txt`
PaulM
(Paul M)
January 6, 2023, 8:28pm
4
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
PaulM
(Paul M)
January 9, 2023, 1:54pm
5
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
jalakoo
( Jalakoo)
January 9, 2023, 3:08pm
6
Sounds like a perfectly reasonable mistake to make. Thanks for tracking that down!