Skip to content

Commit

Permalink
Add missing test.assert_raises() API.
Browse files Browse the repository at this point in the history
  • Loading branch information
tshead committed Jul 11, 2024
1 parent 58473cf commit d8d7743
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions features/steps/cartesian-coordinates.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import numpy
import toyplot.data

import test
import testing


Expand Down
3 changes: 3 additions & 0 deletions features/steps/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def assert_logs(logger=None, level=None):
def assert_no_logs(logger=None, level=None):
return unittest.TestCase().assertNoLogs(logger, level)

def assert_raises(exception):
return unittest.TestCase().assertRaises(exception)

def assert_sequence_equal(first, second, msg=None, seq_type=None):
return unittest.TestCase().assertSequenceEqual(first, second, msg, seq_type)

Expand Down

0 comments on commit d8d7743

Please sign in to comment.