Skip to content

Commit

Permalink
Add tests for deprecated TaskMetadata.names
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Aug 3, 2023
1 parent 21a940f commit 95d54eb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_taskmetadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,14 @@ def testNumpy(self):
with self.assertRaises(ValueError):
meta["numpy"] = numpy.zeros(5)

def test_deprecated(self):
meta = TaskMetadata()
with self.assertRaises(RuntimeError):
meta.names(topLevelOnly=True)

with self.assertWarns(FutureWarning):
meta.names(topLevelOnly=False)


if __name__ == "__main__":
unittest.main()

0 comments on commit 95d54eb

Please sign in to comment.