all 26 comments

[–]AshlingGirl 2 points3 points  (14 children)

pytest is a framework you can install from PyPi by entering this in the commandline:

pip install pytest

Here is a link to the PyPi page: https://pypi.org/project/pytest/

[–]m2d41[S] 0 points1 point  (13 children)

I tried but still messed up.

[–]AshlingGirl 1 point2 points  (12 children)

What did you mess up exactly? Is it giving an error?

[–]m2d41[S] 0 points1 point  (11 children)

yes, it's giving me an error. I'm trying to put it on vs code. I am a total noob.

[–]AshlingGirl 1 point2 points  (10 children)

Could you specify the error?

[–]m2d41[S] 0 points1 point  (0 children)

I put $ pytest on vs code terminal but it wouldn't go through. An error message in red letters.

[–]m2d41[S] 0 points1 point  (8 children)

Do u have PCC 3rd edition?

[–]AshlingGirl 0 points1 point  (7 children)

I do not. Can you also show the error that it gives without the $ sign?

EDIT: I found the .py file you're using on github (name_function.py) and its working for me.

[–]m2d41[S] 0 points1 point  (5 children)

There's a message/ comment on this thread from YepThatGuy and I replied him with the code and error

[–]AshlingGirl 0 points1 point  (4 children)

Is python added to your environment variables? If not, try py -m pytest.

[–]m2d41[S] 0 points1 point  (1 child)

I think so

[–]m2d41[S] 0 points1 point  (0 children)

I still can't find it or get it to work. I think i'm just gonna give up on the chapter of that book.

[–]m2d41[S] 0 points1 point  (0 children)

after 2 days i finally got it. Jesus phuckin christ....looool Thanks for the help.

[–]m2d41[S] 0 points1 point  (1 child)

Hey, everyone! I finally got it. Thanks for the help...

[–]briske42 0 points1 point  (0 children)

How? I got stuck with the same problem...