Skip to content

Commit

Permalink
Testing checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
fp12 committed Jan 13, 2017
1 parent 6ba820d commit 4098e4a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def test_e_bulk(self):
self.assertEqual(len(t.participants), 4)
yield from self.user.destroy_tournament(t)

@unittest.expectedFailure
# @unittest.expectedFailure
@async_test
def test_f_checkin(self):
challonge.USE_EXCEPTIONS = False
Expand All @@ -300,8 +300,8 @@ def test_f_checkin(self):
yield from t.set_start_date(new_start_date.strftime('%Y/%m/%d'),
new_start_date.strftime('%H:%M'),
10)
self.assertNotEqual(t.start_at, None)
self.assertNotEqual(t.check_in_duration, None)
self.assertNotEqual(t.start_at, None, 'failed at t.set_start_date')
self.assertNotEqual(t.check_in_duration, None, 'failed at t.set_start_date')
except challonge.APIException:
yield from asyncio.sleep(2.0)
total_time += 2.0
Expand All @@ -313,7 +313,7 @@ def test_f_checkin(self):
while p.checked_in_at is None and total_time <= max_time:
try:
yield from p.check_in()
self.assertNotEqual(p.checked_in_at, None)
self.assertNotEqual(p.checked_in_at, None, 'failed at p.check_in()')
except challonge.APIException:
yield from asyncio.sleep(2.0)
total_time += 2.0
Expand Down Expand Up @@ -347,7 +347,7 @@ def test_f_checkin(self):

challonge.USE_EXCEPTIONS = True

self.fail('expected failure that sometimes work')
# self.fail('expected failure that sometimes work')

# @unittest.skip('')
@async_test
Expand Down Expand Up @@ -637,6 +637,7 @@ def test_c_file(self):

print('well it worked...', end=' ')
challonge.USE_EXCEPTIONS = True

self.fail('expected failure that sometimes work')


Expand Down

0 comments on commit 4098e4a

Please sign in to comment.