-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove type checking as not handling OCI type heirarchy
- Loading branch information
Showing
2 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ def test_working_base(self): | |
assert cmd is not None | ||
assert "GroupAccessDeviceAddRequest14" in str(type(cmd)) | ||
|
||
@pytest.mark.xfail | ||
def test_unexpected_list(self): | ||
with pytest.raises(TypeError): | ||
api.get_command_object( | ||
|
@@ -53,6 +54,7 @@ def test_unexpected_list(self): | |
], | ||
) | ||
|
||
@pytest.mark.xfail | ||
def test_not_a_bool(self): | ||
with pytest.raises(TypeError): | ||
api.get_command_object( | ||
|
@@ -71,6 +73,7 @@ def test_not_a_bool(self): | |
), | ||
) | ||
|
||
@pytest.mark.xfail | ||
def test_unexpected_bool(self): | ||
with pytest.raises(TypeError): | ||
api.get_command_object( | ||
|
@@ -89,6 +92,7 @@ def test_unexpected_bool(self): | |
), | ||
) | ||
|
||
@pytest.mark.xfail | ||
def test_too_many_things(self): | ||
with pytest.raises(TypeError): | ||
api.get_command_object( | ||
|
@@ -237,3 +241,17 @@ def test_group_missing_attribute(self): | |
password="tnpass", | ||
), | ||
) | ||
|
||
@pytest.mark.xfail # we do not check for this yet | ||
def test_department_key_type(self): | ||
cmd = api.get_command_object( | ||
"UserModifyRequest16", | ||
user_id="[email protected]", | ||
department=api.get_type_object( | ||
"EnterpriseDepartmentKey", | ||
service_provider_id="mysp", | ||
name="mydept", | ||
), | ||
) | ||
assert cmd is not None | ||
assert "UserModifyRequest16" in str(type(cmd)) |