Skip to content
Snippets Groups Projects
Commit 3cfed2fc authored by Petr Kalashnikov's avatar Petr Kalashnikov
Browse files

Fix usage of value in batch_complete endpoint

parent 8a129e1e
No related branches found
No related tags found
1 merge request!7OM46, del 1: Support batch_complete endpoint from setra
Pipeline #57280 passed
...@@ -88,7 +88,7 @@ class SetraEndpoints: ...@@ -88,7 +88,7 @@ class SetraEndpoints:
def post_new_batch(self): def post_new_batch(self):
return urllib.parse.urljoin(self.baseurl, self.new_batch_url) return urllib.parse.urljoin(self.baseurl, self.new_batch_url)
def batch_complete(self, batch_id: str = None): def batch_complete(self, batch_id: str):
""" """
URL for Batch endpoint URL for Batch endpoint
""" """
......
...@@ -36,7 +36,7 @@ def test_init_transaction_without_value(baseurl): ...@@ -36,7 +36,7 @@ def test_init_transaction_without_value(baseurl):
assert endpoints.transaction() == baseurl + "/api/transaction/" assert endpoints.transaction() == baseurl + "/api/transaction/"
def test_init_batch_complete_without_value(baseurl): def test_init_batch_complete_with_value(baseurl):
endpoints = SetraEndpoints(baseurl) endpoints = SetraEndpoints(baseurl)
assert endpoints.batch_complete() == baseurl + "/api/batch_complete/" assert endpoints.batch_complete(batch_id="5") == baseurl + "/api/batch_complete/5"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment