Skip to content

Commit 47665cc

Browse files
PProfiziBClappe
authored andcommitted
Add a test
1 parent 295e4df commit 47665cc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_any.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,15 @@ def test_cast_scoping_any(server_type):
122122
assert entity.location == new_entity.location
123123

124124

125+
@conftest.raises_for_servers_version_under("7.0")
126+
def test_cast_data_sources_any(server_type):
127+
entity = dpf.DataSources(server=server_type, location="test")
128+
any_dpf = dpf.Any.new_from(entity)
129+
new_entity = any_dpf.cast()
130+
131+
assert entity.location == new_entity.location
132+
133+
125134
@pytest.mark.skipif(
126135
not conftest.SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_10_0,
127136
reason="for_each not implemented below 8.0. Failing for gRPC CLayer below 10.0 for any.whl",

0 commit comments

Comments
 (0)