Cannot use the "Use run command" option in replit - Polygon Area Calculator

Tell us what’s happening:
Describe your issue in detail here.

I am trying to test my code for the Scientific Computing with Python - Polygon Area Calculator, but the “Use run command” option to run test isn’t in the boilerplate. Is there another way I can run my code against the test cases? I have already tried adding run = "python3 main.py" in the .replit file, but it still doesn’t run the tests. Thanks for any and all help!

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36

Challenge: Scientific Computing with Python Projects - Polygon Area Calculator

Link to the challenge:

Link to the replit, please!

Hey @pkdvalis, thanks for responding! Here’s the link to the replit:

What happens when you click run? I get this output:

Ran 15 tests in 0.002s

OK

@pkdvalis Yea I did too, but I removed some code and it still passed, so I assumed it wasn’t actually running my code against any tests. This output looks different as well from past tests in other projects.

What exactly did you remove?

and what about your own tests? It seems to work perfectly.

50
26
Rectangle(width=10, height=3)
**********
**********
**********

81
5.656854249492381
Square(side=4)
****
****
****
****

8
...............
----------------------------------------------------------------------
Ran 15 tests in 0.002s

OK

@pkdvalis I removed a few methods in the Square class. I thought that the tests would check more of the project so that I could see if the way my classes were set up are correct. This project seems a lot easier than the past 3, so maybe that’s what’s throwing me off. I submit what I have and hopefully it’s good to go. Thanks again @pkdvalis !

1 Like

Lol I get it, but take an easy win when you can!

1 Like

I am trying to test my code for the Scientific Computing with Python - Polygon Area Calculator, but the “Use run command” option to run test isn’t in the boilerplate. Is there another way I can run my code against the test cases?

Please open a new topic.

Also, try this:

https://forum.freecodecamp.org/t/data-analysis-with-python-projects-medical-data-visualizer/647910/2?u=pkdvalis

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.