My code won’t run, and I don’t know where to edit that.
Last project I typed, Use Run Command like it stated but that didnt work either and I don’t recall what I did to get it to work.
My code won’t run, and I don’t know where to edit that.
Last project I typed, Use Run Command like it stated but that didnt work either and I don’t recall what I did to get it to work.
You need to edit this run
line in .replit
It should be
run = "python3 main.py"
Thank you that worked! I’m now getting that 2 test failed but I don’t understand where or how!
Have a very careful read of the error output, they usually have clues to what the problem is.
It’s telling them there is an issue on the boilerplate code but I didn’t put that code in:
Traceback (most recent call last):
File “/home/runner/boilerplate-time-calculator/test_module.py”, line 60, in test_two_days_later_with_day
self.assertEqual(actual, expected, ‘Expected calling “add_time()” with “11:59 PM”, “24:05”, “Wednesday” to return “12:04 AM, Friday (2 days later)”’)
AssertionError: ‘12:04 AM, Friday’ != ‘12:04 AM, Friday (2 days later)’
Ran 12 tests in 0.002s
FAILED (failures=7)
Read it more carefully, it’s telling you exactly what the problem is here.
If the result will be more than one day later, it should show
(n days later)
after the time, where “n” is the number of days later.
This part is telling you that the test is generating an error, and which test it is:
File “/home/runner/boilerplate-time-calculator/test_module.py”, line 60, in test_two_days_later_with_day
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.