Skip to content

Commit fce2980

Browse files
Update spot unittest to match actual api of the function
1 parent b75fbad commit fce2980

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

formfyxer/tests/test_lit_explorer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def setUp(self) -> None:
134134
def test_calls_spot(self, mock_post):
135135
text = "The quick brown fox jumps over the lazy dog."
136136
self.request_args["data"]["text"] = text
137-
spot(text)
137+
spot(text, token="your_SPOT_API_token goes here")
138138
mock_post.assert_called_with(
139139
self.request_args["url"],
140140
headers=self.request_args["headers"],
@@ -146,7 +146,7 @@ def test_calls_spot_with_reduced_character_count(self, mock_post):
146146
text = "a" * 5001
147147
reduced_text = "a" * 5000
148148
self.request_args["data"]["text"] = reduced_text
149-
spot(text)
149+
spot(text, token="your_SPOT_API_token goes here")
150150
mock_post.assert_called_with(
151151
self.request_args["url"],
152152
headers=self.request_args["headers"],

0 commit comments

Comments
 (0)