Skip to content

Commit 49aa02d

Browse files
remove nltk references from tests
1 parent 27a0419 commit 49aa02d

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

tests/unit_tests/classes/test_rc.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44

55
class TestRC:
66
def test_load(self, mocker):
7-
# TODO: Re-enable this once we move nltk.download calls to individual validator repos. # noqa
8-
# Right now, it fires during our import chain, causing this to blow up
9-
mocker.patch("nltk.data.find")
10-
mocker.patch("nltk.download")
11-
127
expanduser_mock = mocker.patch("guardrails.classes.rc.expanduser")
138
expanduser_mock.return_value = "/Home"
149

tests/unit_tests/cli/test_configure.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ def test_configure(mocker, runner, expected_token, enable_metrics, clear_token):
6161

6262

6363
def test_save_configuration_file(mocker):
64-
# TODO: Re-enable this once we move nltk.download calls to individual validator repos. # noqa
65-
# Right now, it fires during our import chain, causing this to blow up
66-
mocker.patch("nltk.data.find")
67-
mocker.patch("nltk.download")
68-
6964
expanduser_mock = mocker.patch("guardrails.cli.configure.expanduser")
7065
expanduser_mock.return_value = "/Home"
7166

tests/unit_tests/cli/test_validate.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33

44
def test_validate(mocker):
5-
mocker.patch("nltk.data.find")
6-
mocker.patch("nltk.download")
7-
85
mock_validate_llm_output = mocker.patch(
96
"guardrails.cli.validate.validate_llm_output"
107
)

0 commit comments

Comments
 (0)