Skip to content

Commit 338e3d8

Browse files
author
Valeriy Mukhtarulin
committed
Fix test
1 parent a202c7b commit 338e3d8

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

tests/test_line_items.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
import pytest
21
import responses
32

43
from veryfi import *
54

65

7-
@pytest.mark.parametrize("client_secret", [None, "s"])
86
@responses.activate
9-
def test_line_items(client_secret):
7+
def test_line_items():
108
mock_doc_id = 1
119
mock_line_item_id = 1
1210
mock_resp = {
@@ -29,7 +27,7 @@ def test_line_items(client_secret):
2927
}
3028
],
3129
}
32-
client = Client(client_id="v", client_secret=client_secret, username="o", api_key="c")
30+
client = Client(client_id="v", client_secret=None, username="o", api_key="c")
3331
responses.add(
3432
responses.GET,
3533
f"{client.versioned_url}/partner/documents/{mock_doc_id}/line-items/",
@@ -80,10 +78,6 @@ def test_line_items(client_secret):
8078
json=mock_resp["line_items"][0],
8179
status=200,
8280
)
83-
with pytest.raises(Exception):
84-
client.add_line_item(mock_doc_id, {"order": 1})
85-
with pytest.raises(Exception):
86-
client.add_line_item(mock_doc_id, {"order": 1, "description": "foo"})
8781

8882
assert (
8983
client.add_line_item(mock_doc_id, {"order": 1, "description": "foo", "total": 1.0})

0 commit comments

Comments
 (0)