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",
|
Entity type for this heartbeat. Can be "file",
|
||||||
"domain" or "app". Defaults to "file".
|
"domain" or "app". Defaults to "file".
|
||||||
--category CATEGORY Category of this heartbeat activity. Can be "coding",
|
--category CATEGORY Category of this heartbeat activity. Can be "coding",
|
||||||
"building", "debugging", "running tests", "browsing",
|
"building", "indexing", "debugging", "running tests",
|
||||||
"code reviewing", "designing" or "indexing". Defaults
|
"manual testing", "browsing", "code reviewing" or
|
||||||
to "coding".
|
"designing". Defaults to "coding".
|
||||||
--proxy PROXY Optional proxy configuration. Supports HTTPS and SOCKS
|
--proxy PROXY Optional proxy configuration. Supports HTTPS and SOCKS
|
||||||
proxies. For example: https://user:pass@host:port or
|
proxies. For example: https://user:pass@host:port or
|
||||||
socks5://user:pass@host:port or domain\user:pass
|
socks5://user:pass@host:port or domain\user:pass
|
||||||
|
|
|
@ -505,12 +505,13 @@ class ArgumentsTestCase(TestCase):
|
||||||
valid_categories = [
|
valid_categories = [
|
||||||
'coding',
|
'coding',
|
||||||
'building',
|
'building',
|
||||||
|
'indexing',
|
||||||
'debugging',
|
'debugging',
|
||||||
'running tests',
|
'running tests',
|
||||||
|
'manual testing',
|
||||||
'browsing',
|
'browsing',
|
||||||
'code reviewing',
|
'code reviewing',
|
||||||
'designing',
|
'designing',
|
||||||
'indexing',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
for category in valid_categories:
|
for category in valid_categories:
|
||||||
|
|
|
@ -87,9 +87,10 @@ def parse_arguments():
|
||||||
parser.add_argument('--category', dest='category',
|
parser.add_argument('--category', dest='category',
|
||||||
action=StoreWithoutQuotes,
|
action=StoreWithoutQuotes,
|
||||||
help='Category of this heartbeat activity. Can be ' +
|
help='Category of this heartbeat activity. Can be ' +
|
||||||
'"coding", "building", "debugging", ' +
|
'"coding", "building", "indexing", ' +
|
||||||
'"running tests", "browsing", ' +
|
'"debugging", "running tests", ' +
|
||||||
'"code reviewing", "designing" or "indexing". ' +
|
'"manual testing", "browsing", ' +
|
||||||
|
'"code reviewing" or "designing". ' +
|
||||||
'Defaults to "coding".')
|
'Defaults to "coding".')
|
||||||
parser.add_argument('--proxy', dest='proxy', action=StoreWithoutQuotes,
|
parser.add_argument('--proxy', dest='proxy', action=StoreWithoutQuotes,
|
||||||
help='Optional proxy configuration. Supports HTTPS '+
|
help='Optional proxy configuration. Supports HTTPS '+
|
||||||
|
|
|
@ -63,12 +63,13 @@ class Heartbeat(object):
|
||||||
allowed_categories = [
|
allowed_categories = [
|
||||||
'coding',
|
'coding',
|
||||||
'building',
|
'building',
|
||||||
|
'indexing',
|
||||||
'debugging',
|
'debugging',
|
||||||
'running tests',
|
'running tests',
|
||||||
|
'manual testing',
|
||||||
'browsing',
|
'browsing',
|
||||||
'code reviewing',
|
'code reviewing',
|
||||||
'designing',
|
'designing',
|
||||||
'indexing',
|
|
||||||
]
|
]
|
||||||
if self.category not in allowed_categories:
|
if self.category not in allowed_categories:
|
||||||
self.category = None
|
self.category = None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue