Skip to content

Commit

Permalink
Ignore type warning.
Browse files Browse the repository at this point in the history
This is a dict(str, str) but it's not worth defining that and making the decorator call messy in this specific test case.
  • Loading branch information
tonyandrewmeyer committed Sep 22, 2023
1 parent 5302b6d commit 5b9ab96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_jujuversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_parsing(self):
self.assertEqual(v.patch, patch)
self.assertEqual(v.build, build)

@unittest.mock.patch('os.environ', new={})
@unittest.mock.patch('os.environ', new={}) # type: ignore
def test_from_environ(self):
# JUJU_VERSION is not set
v = ops.JujuVersion.from_environ()
Expand Down

0 comments on commit 5b9ab96

Please sign in to comment.