title: (CS50P) check50 returns errors to my test code, that I`m sure is correct
body: <p>I have a working variant of the &quot;Working 9 to 5&quot; problem and a test file, that passes all the assertions. I am pretty sure, that I have tested everything, but check50 still returns me this message:</p>
  <pre><code>:) working.py and test_working.py exist
  :) working.py does not import libraries other than sys and re
  :) working.py converts &quot;9 AM to 5 PM&quot; to &quot;09:00 to 17:00&quot;
  :) working.py converts &quot;9:00 AM to 5:00 PM&quot; to &quot;09:00 to 17:00&quot;
  :) working.py converts &quot;8 PM to 8 AM&quot; to &quot;20:00 to 08:00&quot;
  :) working.py converts &quot;8:00 PM to 8:00 AM&quot; to &quot;20:00 to 08:00&quot;
  :) working.py converts &quot;12 AM to 12 PM&quot; to &quot;00:00 to 12:00&quot;
  :) working.py converts &quot;12:00 AM to 12:00 PM&quot; to &quot;00:00 to 12:00&quot;
  :) working.py raises ValueError when given &quot;8:60 AM to 4:60 PM&quot;
  :) working.py raises ValueError when given &quot;9AM to 5PM&quot;
  :) working.py raises ValueError when given &quot;09:00 to 17:00&quot;
  :) working.py raises ValueError when given &quot;9 AM - 5 PM&quot;
  :) working.py raises ValueError when given &quot;10:7 AM - 5:1 PM&quot;
  :) correct working.py passes all test_working checks
  :( test_working.py catches working.py printing incorrect hours
      expected exit code 1, not 2
  :( test_working.py catches working.py printing incorrect minutes
      expected exit code 1, not 2
  :( test_working.py catches working.py not raising ValueError when user omits &quot; to &quot;
      expected exit code 1, not 2
  :( test_working.py catches working.py not raising ValueError for out-of-range times
      expected exit code 1, not 2
  :( test_working.py catches working.py not raising ValueError for invalid time format
      expected exit code 1, not 2
  </code></pre>
  <p>Here`s the test file:</p>
  <pre><code>from working import convert
  import pytest
  
  def test_wrong_hour():
      with pytest.raises(ValueError):
          convert(&quot;13 AM to 5 PM&quot;)
  
  def test_wrong_minute():
      with pytest.raises(ValueError):
          convert(&quot;12:60 AM to 5 PM&quot;)
  
  
  def test_time():
      assert convert(&quot;9 AM to 5 PM&quot;) == &quot;09:00 to 17:00&quot;
      assert convert(&quot;9:30 AM to 5:45 PM&quot;) == &quot;09:30 to 17:45&quot;
  
  
  def test_to():
      with pytest.raises(ValueError):
          convert(&quot;9 AM 5 PM&quot;)
  
  
  def test_format():
      with pytest.raises(ValueError):
          convert(&quot;9 to 5&quot;)
      with pytest.raises(ValueError):
          convert(&quot;17:00 to 9 PM&quot;)
  
  
  test_wrong_hour()
  test_wrong_minute()
  test_time()
  test_to()
  test_format()
  </code></pre>
  <p>I have even tried looking at a YouTube video with the solution. I did not copy it line by line, but have basically done the same thing at the end as that video said. It still returns me this message and I cannot figure out why it does so. Has any of you taken the CS50P course and had this issue? If so, do you know the solution?</p>