We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df26060 commit fc2c630Copy full SHA for fc2c630
1 file changed
tests/integration/test_resources.py
@@ -48,9 +48,10 @@ def tmp_user():
48
def test_create_or_update(tmp_user):
49
"""Test create or update resource to java gateway."""
50
resource = Resource(name=name, content=content, user_name=UNIT_TEST_USER_NAME)
51
- result = resource.create_or_update_resource()
52
- assert result is not None and isinstance(result, JavaObject)
53
- assert result.getAlias() == name
+ try:
+ resource.create_or_update_resource()
+ except Exception:
54
+ pytest.fail("Create or update resource failed.")
55
56
57
def test_get_resource_info(tmp_user):
0 commit comments