Skip to content

Commit

Permalink
rename test so the other one runs first and everything passes
Browse files Browse the repository at this point in the history
I AM A HACK

Signed-off-by: Aadi Bajpai <[email protected]>
  • Loading branch information
Aadi Bajpai committed Feb 1, 2020
1 parent 9fbb474 commit 15b9ab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ def test_that_unsupported_precheck_does_not_update_under_a_day(self):
self.assertIsNone(val)

@patch('swaglyrics.__main__.requests.get')
def test_that_unsupported_precheck_does_update_after_a_day(self, fake_get):
def test_that_unsupported_precheck_updates_after_a_day(self, fake_get):
fake_get.side_effect = requests.exceptions.RequestException
capturedOutput = io.StringIO()
sys.stdout = capturedOutput
with open(unsupported_txt, 'w') as f:
f.write(str(time.time()-86500)) # more than a day
f.write(str(time.time() - 86500)) # more than a day
unsupported_precheck()
sys.stdout = sys.__stdout__
self.assertTrue(fake_get.called)
Expand Down

0 comments on commit 15b9ab3

Please sign in to comment.