add manual testing category
This commit is contained in:
parent
358308c993
commit
f2b8776e21
4 changed files with 11 additions and 8 deletions
|
@ -31,9 +31,9 @@ optional arguments:
|
|||
Entity type for this heartbeat. Can be "file",
|
||||
"domain" or "app". Defaults to "file".
|
||||
--category CATEGORY Category of this heartbeat activity. Can be "coding",
|
||||
"building", "debugging", "running tests", "browsing",
|
||||
"code reviewing", "designing" or "indexing". Defaults
|
||||
to "coding".
|
||||
"building", "indexing", "debugging", "running tests",
|
||||
"manual testing", "browsing", "code reviewing" or
|
||||
"designing". Defaults to "coding".
|
||||
--proxy PROXY Optional proxy configuration. Supports HTTPS and SOCKS
|
||||
proxies. For example: https://user:pass@host:port or
|
||||
socks5://user:pass@host:port or domain\user:pass
|
||||
|
|
|
@ -505,12 +505,13 @@ class ArgumentsTestCase(TestCase):
|
|||
valid_categories = [
|
||||
'coding',
|
||||
'building',
|
||||
'indexing',
|
||||
'debugging',
|
||||
'running tests',
|
||||
'manual testing',
|
||||
'browsing',
|
||||
'code reviewing',
|
||||
'designing',
|
||||
'indexing',
|
||||
]
|
||||
|
||||
for category in valid_categories:
|
||||
|
|
|
@ -87,9 +87,10 @@ def parse_arguments():
|
|||
parser.add_argument('--category', dest='category',
|
||||
action=StoreWithoutQuotes,
|
||||
help='Category of this heartbeat activity. Can be ' +
|
||||
'"coding", "building", "debugging", ' +
|
||||
'"running tests", "browsing", ' +
|
||||
'"code reviewing", "designing" or "indexing". ' +
|
||||
'"coding", "building", "indexing", ' +
|
||||
'"debugging", "running tests", ' +
|
||||
'"manual testing", "browsing", ' +
|
||||
'"code reviewing" or "designing". ' +
|
||||
'Defaults to "coding".')
|
||||
parser.add_argument('--proxy', dest='proxy', action=StoreWithoutQuotes,
|
||||
help='Optional proxy configuration. Supports HTTPS '+
|
||||
|
|
|
@ -63,12 +63,13 @@ class Heartbeat(object):
|
|||
allowed_categories = [
|
||||
'coding',
|
||||
'building',
|
||||
'indexing',
|
||||
'debugging',
|
||||
'running tests',
|
||||
'manual testing',
|
||||
'browsing',
|
||||
'code reviewing',
|
||||
'designing',
|
||||
'indexing',
|
||||
]
|
||||
if self.category not in allowed_categories:
|
||||
self.category = None
|
||||
|
|
Loading…
Reference in a new issue