Question: I am unable to run my code
**Current behavior:**I am required to import a “.py” file from unittest but unittest is empty.
Desired behavior The code should just run
Repl link: https://replit.com/@JeremiahOjo1/boilerplate-time-calculator?v=1
code snippet
From the README.md
file, it seems you are following a guide from somewhere else. Note that many guides may not work on Replit.
Also, if it should work, I don’t see a module or package called unittest
.
Edit: If you’re trying to do unit tests, there is a tool for that in the Tools section of your sidebar.
1 Like
I’m not sure what the exact problem, is, go to the Git tab and make sure you commit all the changes. I did that and it still wasn’t working when I pressed run, but it did let me run it manually from the shell with python3 main.py
1 Like
Ok I found your issue, you need to change the entrypoint in the .replit
file from readme.md
to main.py
Then it will work.
2 Likes
here’s your forked and fixed code if you want to take a look at it. the only change should be in the .replit file. https://replit.com/@InvisibleOne/boilerplate-time-calculator
2 Likes