Skip to content

Commit 5fd61b2

Browse files
committed
Fix lint: use pytest.raises instead of assertRaises (PT027)
1 parent c895b04 commit 5fd61b2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_env_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import os
77
import unittest
88

9+
import pytest
10+
911
from seclab_taskflow_agent.env_utils import TmpEnv, swap_env
1012

1113

@@ -30,7 +32,7 @@ def test_globals_with_context(self):
3032
assert result == "key-GHSA-1234"
3133

3234
def test_globals_without_context_raises(self):
33-
with self.assertRaises(LookupError):
35+
with pytest.raises(LookupError):
3436
swap_env("{{ globals.missing }}")
3537

3638
def test_context_cannot_override_env_helper(self):

0 commit comments

Comments
 (0)