fix docopt parsing and stream manager tests
This commit is contained in:
parent
668840921f
commit
7b57ba96dd
2 changed files with 21 additions and 21 deletions
|
@ -1795,20 +1795,20 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
making sure to include colon for blank values, for
|
making sure to include colon for blank values, for
|
||||||
example to provide only the city:
|
example to provide only the city:
|
||||||
|
|
||||||
--locations="::Manchester"
|
... --locations="::Manchester"
|
||||||
|
|
||||||
with all values set:
|
with all values set:
|
||||||
|
|
||||||
--locations="US:NH:Manchester:03101:42.990605:-71.460989"
|
... --locations="US:NH:Manchester:03101:42.990605:-71.460989"
|
||||||
|
|
||||||
optionally, you can just pass the "LATITUDE:LONGITUDE":
|
optionally, you can just pass the "LATITUDE:LONGITUDE":
|
||||||
|
|
||||||
--locations="42.990605:-71.460989"
|
... --locations="42.990605:-71.460989"
|
||||||
|
|
||||||
finally, you can also pass JSON string of dictionary
|
finally, you can also pass JSON string of dictionary
|
||||||
on the command line as you would via JSON RPC
|
on the command line as you would via JSON RPC
|
||||||
|
|
||||||
--locations="{'country': 'US', 'state': 'NH'}"
|
... --locations="{'country': 'US', 'state': 'NH'}"
|
||||||
|
|
||||||
--contact_email=<contact_email>: (str) email of channel owner
|
--contact_email=<contact_email>: (str) email of channel owner
|
||||||
--homepage_url=<homepage_url> : (str) homepage url
|
--homepage_url=<homepage_url> : (str) homepage url
|
||||||
|
@ -1903,20 +1903,20 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
making sure to include colon for blank values, for
|
making sure to include colon for blank values, for
|
||||||
example to provide only the city:
|
example to provide only the city:
|
||||||
|
|
||||||
--locations="::Manchester"
|
... --locations="::Manchester"
|
||||||
|
|
||||||
with all values set:
|
with all values set:
|
||||||
|
|
||||||
--locations="US:NH:Manchester:03101:42.990605:-71.460989"
|
... --locations="US:NH:Manchester:03101:42.990605:-71.460989"
|
||||||
|
|
||||||
optionally, you can just pass the "LATITUDE:LONGITUDE":
|
optionally, you can just pass the "LATITUDE:LONGITUDE":
|
||||||
|
|
||||||
--locations="42.990605:-71.460989"
|
... --locations="42.990605:-71.460989"
|
||||||
|
|
||||||
finally, you can also pass JSON string of dictionary
|
finally, you can also pass JSON string of dictionary
|
||||||
on the command line as you would via JSON RPC
|
on the command line as you would via JSON RPC
|
||||||
|
|
||||||
--locations="{'country': 'US', 'state': 'NH'}"
|
... --locations="{'country': 'US', 'state': 'NH'}"
|
||||||
|
|
||||||
--contact_email=<contact_email>: (str) email of channel owner
|
--contact_email=<contact_email>: (str) email of channel owner
|
||||||
--homepage_url=<homepage_url> : (str) homepage url
|
--homepage_url=<homepage_url> : (str) homepage url
|
||||||
|
@ -2105,20 +2105,20 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
making sure to include colon for blank values, for
|
making sure to include colon for blank values, for
|
||||||
example to provide only the city:
|
example to provide only the city:
|
||||||
|
|
||||||
--locations="::Manchester"
|
... --locations="::Manchester"
|
||||||
|
|
||||||
with all values set:
|
with all values set:
|
||||||
|
|
||||||
--locations="US:NH:Manchester:03101:42.990605:-71.460989"
|
... --locations="US:NH:Manchester:03101:42.990605:-71.460989"
|
||||||
|
|
||||||
optionally, you can just pass the "LATITUDE:LONGITUDE":
|
optionally, you can just pass the "LATITUDE:LONGITUDE":
|
||||||
|
|
||||||
--locations="42.990605:-71.460989"
|
... --locations="42.990605:-71.460989"
|
||||||
|
|
||||||
finally, you can also pass JSON string of dictionary
|
finally, you can also pass JSON string of dictionary
|
||||||
on the command line as you would via JSON RPC
|
on the command line as you would via JSON RPC
|
||||||
|
|
||||||
--locations="{'country': 'US', 'state': 'NH'}"
|
... --locations="{'country': 'US', 'state': 'NH'}"
|
||||||
|
|
||||||
--license=<license> : (str) publication license
|
--license=<license> : (str) publication license
|
||||||
--license_url=<license_url> : (str) publication license url
|
--license_url=<license_url> : (str) publication license url
|
||||||
|
@ -2226,20 +2226,20 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
making sure to include colon for blank values, for
|
making sure to include colon for blank values, for
|
||||||
example to provide only the city:
|
example to provide only the city:
|
||||||
|
|
||||||
--locations="::Manchester"
|
... --locations="::Manchester"
|
||||||
|
|
||||||
with all values set:
|
with all values set:
|
||||||
|
|
||||||
--locations="US:NH:Manchester:03101:42.990605:-71.460989"
|
... --locations="US:NH:Manchester:03101:42.990605:-71.460989"
|
||||||
|
|
||||||
optionally, you can just pass the "LATITUDE:LONGITUDE":
|
optionally, you can just pass the "LATITUDE:LONGITUDE":
|
||||||
|
|
||||||
--locations="42.990605:-71.460989"
|
... --locations="42.990605:-71.460989"
|
||||||
|
|
||||||
finally, you can also pass JSON string of dictionary
|
finally, you can also pass JSON string of dictionary
|
||||||
on the command line as you would via JSON RPC
|
on the command line as you would via JSON RPC
|
||||||
|
|
||||||
--locations="{'country': 'US', 'state': 'NH'}"
|
... --locations="{'country': 'US', 'state': 'NH'}"
|
||||||
|
|
||||||
--license=<license> : (str) publication license
|
--license=<license> : (str) publication license
|
||||||
--license_url=<license_url> : (str) publication license url
|
--license_url=<license_url> : (str) publication license url
|
||||||
|
@ -2372,20 +2372,20 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
making sure to include colon for blank values, for
|
making sure to include colon for blank values, for
|
||||||
example to provide only the city:
|
example to provide only the city:
|
||||||
|
|
||||||
--locations="::Manchester"
|
... --locations="::Manchester"
|
||||||
|
|
||||||
with all values set:
|
with all values set:
|
||||||
|
|
||||||
--locations="US:NH:Manchester:03101:42.990605:-71.460989"
|
... --locations="US:NH:Manchester:03101:42.990605:-71.460989"
|
||||||
|
|
||||||
optionally, you can just pass the "LATITUDE:LONGITUDE":
|
optionally, you can just pass the "LATITUDE:LONGITUDE":
|
||||||
|
|
||||||
--locations="42.990605:-71.460989"
|
... --locations="42.990605:-71.460989"
|
||||||
|
|
||||||
finally, you can also pass JSON string of dictionary
|
finally, you can also pass JSON string of dictionary
|
||||||
on the command line as you would via JSON RPC
|
on the command line as you would via JSON RPC
|
||||||
|
|
||||||
--locations="{'country': 'US', 'state': 'NH'}"
|
... --locations="{'country': 'US', 'state': 'NH'}"
|
||||||
|
|
||||||
--license=<license> : (str) publication license
|
--license=<license> : (str) publication license
|
||||||
--license_url=<license_url> : (str) publication license url
|
--license_url=<license_url> : (str) publication license url
|
||||||
|
|
|
@ -63,7 +63,7 @@ def get_mock_wallet(sd_hash, storage, balance=10.0, fee=None):
|
||||||
elif fee['currency'] == 'USD':
|
elif fee['currency'] == 'USD':
|
||||||
claim_obj.stream.fee.usd = Decimal(fee['amount'])
|
claim_obj.stream.fee.usd = Decimal(fee['amount'])
|
||||||
claim_obj.stream.title = "33rpm"
|
claim_obj.stream.title = "33rpm"
|
||||||
claim_obj.stream.language = "en"
|
claim_obj.stream.languages.append("en")
|
||||||
claim_obj.stream.sd_hash = sd_hash
|
claim_obj.stream.sd_hash = sd_hash
|
||||||
claim_obj.stream.media_type = "image/png"
|
claim_obj.stream.media_type = "image/png"
|
||||||
claim['value'] = claim_obj
|
claim['value'] = claim_obj
|
||||||
|
|
Loading…
Reference in a new issue