Skip to content
Snippets Groups Projects

Asset range option

Merged Michał Kudela requested to merge kudmich/add_asset_range_option into master
@@ -52,20 +52,12 @@ def test_different_types_of_assets_during_create_range_asset_object():
(tt.Asset.Test(1), 3.14),
(tt.Asset.Test(1), "string"),
(tt.Asset.Test(1), range(0, 1)),
(None, tt.Asset.Test(1)),
(True, tt.Asset.Test(1)),
(False, tt.Asset.Test(1)),
({}, tt.Asset.Test(1)),
([], tt.Asset.Test(1)),
((), tt.Asset.Test(1)),
(set(), tt.Asset.Test(1)),
(3, tt.Asset.Test(1)),
(3.14, tt.Asset.Test(1)),
("string", tt.Asset.Test(1)),
(range(0, 1), tt.Asset.Test(1)),
],
)
def test_incorrect_type_of_arguments_in_lower_and_upper_limit(upper_limit, lower_limit):
@pytest.mark.parametrize("swap", [True, False])
def test_incorrect_type_of_arguments_in_lower_and_upper_limit(swap, upper_limit, lower_limit):
if swap:
upper_limit, lower_limit = lower_limit, upper_limit
with pytest.raises(TypeError):
tt.Asset.Range(lower_limit, upper_limit)
Loading