Skip to content

Commit

Permalink
fix the failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
mbalunovic committed Aug 6, 2024
1 parent 2eb95a2 commit 4a2d758
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_stdlib_functions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import unittest
import tempfile
from invariant import Policy
from invariant.extras import extras_available, presidio_extra

class TestStdlibFunctions(unittest.TestCase):

Expand Down Expand Up @@ -43,7 +44,7 @@ def test_sensitive_types(self):
res = policy.analyze([], workspace=temp_dir)
self.assertEqual(len(res.errors), 1)


@unittest.skipUnless(extras_available(presidio_extra), "presidio-analyzer is not installed")
def test_sensitive_contents(self):
with tempfile.TemporaryDirectory() as temp_dir:
with open(temp_dir + "/file1.txt", "w") as f:
Expand Down

0 comments on commit 4a2d758

Please sign in to comment.