Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Setra Client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
it-bott-integrasjoner
Setra Client
Commits
3cfed2fc
Commit
3cfed2fc
authored
4 years ago
by
Petr Kalashnikov
Browse files
Options
Downloads
Patches
Plain Diff
Fix usage of value in batch_complete endpoint
parent
8a129e1e
No related branches found
No related tags found
1 merge request
!7
OM46, del 1: Support batch_complete endpoint from setra
Pipeline
#57280
passed
4 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
setra_client/client.py
+1
-1
1 addition, 1 deletion
setra_client/client.py
tests/test_endpoints.py
+2
-2
2 additions, 2 deletions
tests/test_endpoints.py
with
3 additions
and
3 deletions
setra_client/client.py
+
1
−
1
View file @
3cfed2fc
...
@@ -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
"""
"""
...
...
This diff is collapsed.
Click to expand it.
tests/test_endpoints.py
+
2
−
2
View file @
3cfed2fc
...
@@ -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_with
out
_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
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment