Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
CZPR-PZIZKA\pzizka committed Jul 4, 2018
1 parent e145eee commit 0a80d89
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 70 deletions.
2 changes: 1 addition & 1 deletion examples/routingwrapper_pow.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# Example of sending a transfer using the adapter.
bundle = api.send_transfer(
depth = 100,
depth = 3,
transfers = [
ProposedTransaction(
# Recipient of the transfer.
Expand Down
2 changes: 1 addition & 1 deletion examples/sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# For more information, see :py:meth:`Iota.send_transfer`.
# noinspection SpellCheckingInspection
iota.send_transfer(
depth = 100,
depth = 3,

# One or more :py:class:`ProposedTransaction` objects to add to the
# bundle.
Expand Down
2 changes: 1 addition & 1 deletion examples/send_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# For more information, see :py:meth:`Iota.send_transfer`.
api.send_transfer(
depth = 100,
depth = 3,

# One or more :py:class:`ProposedTransaction` objects to add to the
# bundle.
Expand Down
12 changes: 6 additions & 6 deletions test/commands/core/get_transactions_to_approve_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_pass_happy_path_without_reference(self):
Request is valid without reference.
"""
request = {
'depth': 100,
'depth': 3,
}

filter_ = self._filter(request)
Expand Down Expand Up @@ -72,7 +72,7 @@ def test_fail_unexpected_parameters(self):
"""
self.assertFilterErrors(
{
'depth': 100,
'depth': 3,

# I knew I should have taken that left turn at Albuquerque.
'foo': 'bar',
Expand Down Expand Up @@ -103,7 +103,7 @@ def test_fail_depth_float(self):
"""
self.assertFilterErrors(
{
'depth': 100.0,
'depth': 3.0,
},

{
Expand All @@ -117,7 +117,7 @@ def test_fail_depth_string(self):
"""
self.assertFilterErrors(
{
'depth': '100',
'depth': '3',
},

{
Expand Down Expand Up @@ -147,7 +147,7 @@ def test_fail_reference_wrong_type(self):
{
'reference': 42,

'depth': 100,
'depth': 3,
},

{
Expand All @@ -163,7 +163,7 @@ def test_fail_reference_not_trytes(self):
{
'reference': b'not valid; must contain only uppercase and "9"',

'depth': 100,
'depth': 3,
},

{
Expand Down
20 changes: 10 additions & 10 deletions test/commands/extended/promote_transaction_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_pass_happy_path(self):
Request is valid.
"""
request = {
'depth': 100,
'depth': 3,
'minWeightMagnitude': 18,
'transaction': TransactionHash(self.trytes1),
}
Expand All @@ -53,7 +53,7 @@ def test_pass_compatible_types(self):
'transaction': binary_type(self.trytes1),

# These values must still be ints, however.
'depth': 100,
'depth': 3,
'minWeightMagnitude': 18,
})

Expand Down Expand Up @@ -88,7 +88,7 @@ def test_fail_unexpected_parameters(self):
"""
self.assertFilterErrors(
{
'depth': 100,
'depth': 3,
'minWeightMagnitude': 18,
'transaction': TransactionHash(self.trytes1),

Expand All @@ -109,7 +109,7 @@ def test_fail_transaction_null(self):
{
'transaction': None,

'depth': 100,
'depth': 3,
'minWeightMagnitude': 18,
},

Expand All @@ -126,7 +126,7 @@ def test_fail_transaction_wrong_type(self):
{
'transaction': 42,

'depth': 100,
'depth': 3,
'minWeightMagnitude': 18,
},

Expand All @@ -143,7 +143,7 @@ def test_fail_transaction_not_trytes(self):
{
'transaction': b'not valid; must contain only uppercase and "9"',

'depth': 100,
'depth': 3,
'minWeightMagnitude': 18,
},

Expand Down Expand Up @@ -230,7 +230,7 @@ def test_fail_min_weight_magnitude_null(self):
{
'minWeightMagnitude': None,

'depth': 100,
'depth': 3,
'transaction': TransactionHash(self.trytes1),
},

Expand All @@ -248,7 +248,7 @@ def test_fail_min_weight_magnitude_string(self):
# It's gotta be an int!
'minWeightMagnitude': '18',

'depth': 100,
'depth': 3,
'transaction': TransactionHash(self.trytes1),
},

Expand All @@ -266,7 +266,7 @@ def test_fail_min_weight_magnitude_float(self):
# Even with an empty fpart, float values are not valid.
'minWeightMagnitude': 18.0,

'depth': 100,
'depth': 3,
'transaction': TransactionHash(self.trytes1),
},

Expand All @@ -283,7 +283,7 @@ def test_fail_min_weight_magnitude_too_small(self):
{
'minWeightMagnitude': 0,

'depth': 100,
'depth': 3,
'transaction': TransactionHash(self.trytes1),
},

Expand Down
24 changes: 12 additions & 12 deletions test/commands/extended/replay_bundle_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_pass_happy_path(self):
Request is valid.
"""
request = {
'depth': 100,
'depth': 3,
'minWeightMagnitude': 18,
'transaction': TransactionHash(self.trytes1),
}
Expand All @@ -54,7 +54,7 @@ def test_pass_compatible_types(self):
'transaction': binary_type(self.trytes1),

# These values must still be ints, however.
'depth': 100,
'depth': 3,
'minWeightMagnitude': 18,
})

Expand All @@ -63,7 +63,7 @@ def test_pass_compatible_types(self):
filter_.cleaned_data,

{
'depth': 100,
'depth': 3,
'minWeightMagnitude': 18,
'transaction': TransactionHash(self.trytes1),
},
Expand All @@ -89,7 +89,7 @@ def test_fail_unexpected_parameters(self):
"""
self.assertFilterErrors(
{
'depth': 100,
'depth': 3,
'minWeightMagnitude': 18,
'transaction': TransactionHash(self.trytes1),

Expand All @@ -110,7 +110,7 @@ def test_fail_transaction_null(self):
{
'transaction': None,

'depth': 100,
'depth': 3,
'minWeightMagnitude': 18,
},

Expand All @@ -127,7 +127,7 @@ def test_fail_transaction_wrong_type(self):
{
'transaction': 42,

'depth': 100,
'depth': 3,
'minWeightMagnitude': 18,
},

Expand All @@ -144,7 +144,7 @@ def test_fail_transaction_not_trytes(self):
{
'transaction': b'not valid; must contain only uppercase and "9"',

'depth': 100,
'depth': 3,
'minWeightMagnitude': 18,
},

Expand Down Expand Up @@ -231,7 +231,7 @@ def test_fail_min_weight_magnitude_null(self):
{
'minWeightMagnitude': None,

'depth': 100,
'depth': 3,
'transaction': TransactionHash(self.trytes1),
},

Expand All @@ -249,7 +249,7 @@ def test_fail_min_weight_magnitude_string(self):
# It's gotta be an int!
'minWeightMagnitude': '18',

'depth': 100,
'depth': 3,
'transaction': TransactionHash(self.trytes1),
},

Expand All @@ -267,7 +267,7 @@ def test_fail_min_weight_magnitude_float(self):
# Even with an empty fpart, float values are not valid.
'minWeightMagnitude': 18.0,

'depth': 100,
'depth': 3,
'transaction': TransactionHash(self.trytes1),
},

Expand All @@ -284,7 +284,7 @@ def test_fail_min_weight_magnitude_too_small(self):
{
'minWeightMagnitude': 0,

'depth': 100,
'depth': 3,
'transaction': TransactionHash(self.trytes1),
},

Expand Down Expand Up @@ -616,7 +616,7 @@ def mock_send_trytes(_,request):
mock_send_trytes,
):
response = self.command(
depth = 100,
depth = 3,
minWeightMagnitude = 18,
transaction = bundle[0].hash,
)
Expand Down

0 comments on commit 0a80d89

Please sign in to comment.