Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyOTRS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Som Connexió
OTRS
PyOTRS
Commits
7d71c057
Commit
7d71c057
authored
8 years ago
by
Robert Habermann
Browse files
Options
Downloads
Patches
Plain Diff
add py26 test and skip __init__ coverage
parent
7a70b2c5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyotrs/lib.py
+6
-2
6 additions, 2 deletions
pyotrs/lib.py
tox.ini
+1
-0
1 addition, 0 deletions
tox.ini
with
7 additions
and
2 deletions
pyotrs/lib.py
+
6
−
2
View file @
7d71c057
...
...
@@ -932,7 +932,7 @@ class Client(object):
"""
ticket_get_by_list
Args:
ticket_id_list (list): List of Integer value
ticket_id_list (list): List of
either String or
Integer value
s
attachments (bool): will request OTRS to include attachments (*default: False*)
articles (bool): will request OTRS to include all
Articles (*default: False*)
...
...
@@ -948,7 +948,11 @@ class Client(object):
"
session_restore_or_set_up_new() first
"
)
self
.
operation
=
"
TicketGetList
"
if
isinstance
(
ticket_id_list
,
int
):
# TODO 2016-09-11 (RH) should we silently catch and fix this "misusage" ?!
# if isinstance(ticket_id_list, int):
# ticket_id_list = [ticket_id_list]
if
not
isinstance
(
ticket_id_list
,
list
):
raise
ArgumentInvalidError
(
"
Please provide list of IDs!
"
)
payload
=
{
...
...
This diff is collapsed.
Click to expand it.
tox.ini
+
1
−
0
View file @
7d71c057
...
...
@@ -5,6 +5,7 @@
[tox]
envlist
=
cov_clean,
py26,
py27,
py34,
cov_combine,
...
...
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