Skip to content

Commit

Permalink
add trainer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ncullen93 committed May 4, 2024
1 parent 74736f1 commit ec5f189
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_trainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ def test_regression_keras(self):
tmpfile.close()

trainer.__repr__()

def test_exceptions(self):
with self.assertRaises(Exception):
trainer = nt.Trainer(123, task='regression')

with self.assertRaises(Exception):
trainer = nt.Trainer(self.model, task='wrongtask')


if __name__ == '__main__':
Expand Down

0 comments on commit ec5f189

Please sign in to comment.