diff --git a/pyproject.toml b/pyproject.toml index f8089debc..d4d6b2d22 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,6 +29,7 @@ docstring-convention = "google" [tool.pyright] include = ["ops/*.py", "ops/_private/*.py", + "test/test_private.py", "test/test_infra.py", "test/test_jujuversion.py", "test/test_log.py", diff --git a/test/test_private.py b/test/test_private.py index e74507800..bf85db6a9 100644 --- a/test/test_private.py +++ b/test/test_private.py @@ -90,9 +90,7 @@ def test_parse_rfc3339(self): timeconv.parse_rfc3339('2021-99-99T04:36:22Z') with self.assertRaises(ValueError): - timeconv.parse_rfc3339( - timeconv.parse_rfc3339('2021-02-10T04:36:22.118970777x')) + timeconv.parse_rfc3339('2021-02-10T04:36:22.118970777x') with self.assertRaises(ValueError): - timeconv.parse_rfc3339( - timeconv.parse_rfc3339('2021-02-10T04:36:22.118970777-99:99')) + timeconv.parse_rfc3339('2021-02-10T04:36:22.118970777-99:99')