Skip to content

Commit

Permalink
Minor test coverage improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
fp12 committed Jan 11, 2017
1 parent 4a1c239 commit 7d0c43e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,14 @@ def test_c_file(self):
yield from t.start()
m = yield from t.get_matches()

a = yield from m[0].attach_file('examples/listing.py', 'Simple example')
self.assertNotEqual(a.asset_url, None)
try:
a = yield from m[0].attach_file('examples/listing.py', 'Simple example')
self.assertNotEqual(a.asset_url, None)
except challonge.APIException:
pass

random_text = get_random_name()
a = yield from m[0].attach_text(random_text)

random_text = get_random_name()
yield from a.change_description(random_text)
Expand Down

0 comments on commit 7d0c43e

Please sign in to comment.