From f02641fe3be5ccff79dcf01b4611aec11c06e40f Mon Sep 17 00:00:00 2001
From: Christoph Alt <christoph.alt@fau.de>
Date: Thu, 5 Dec 2024 08:50:03 +0100
Subject: [PATCH] using get_dtype() to get the full typename

---
 tests/lang/test_sycl_accessor.py | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/tests/lang/test_sycl_accessor.py b/tests/lang/test_sycl_accessor.py
index 88f958f..d2af295 100644
--- a/tests/lang/test_sycl_accessor.py
+++ b/tests/lang/test_sycl_accessor.py
@@ -10,13 +10,11 @@ import pystencils as ps
 def test_spatial_field(data_type, dim):
     f = ps.fields(f"f:{data_type}[{dim}D]")
     ref = sycl_accessor_ref(f)
-    assert (
-        f"sycl::accessor< {data_type}, {dim} > &" in ref.as_variable().name_and_type()
-    )
+    assert f"sycl::accessor< {data_type}, {dim} > &" in str(ref.get_dtype())
 
 
 @pytest.mark.parametrize("data_type", ["double", "float"])
-def test_to_large_dim(data_type):
+def test_too_large_dim(data_type):
     dim = 4
     f = ps.fields(f"f:{data_type}[{dim}D]")
     with pytest.raises(ValueError):
@@ -32,10 +30,7 @@ def test_index_field(data_type, spatial_dim, index_dims):
     f = ps.fields(f"f({', '.join(index_shape)}):{data_type}[{spatial_dim}D]")
     if total_dims <= 3:
         ref = sycl_accessor_ref(f)
-        assert (
-            f"sycl::accessor< {data_type}, {total_dims} > &"
-            in ref.as_variable().name_and_type()
-        )
+        assert f"sycl::accessor< {data_type}, {total_dims} > &" in str(ref.get_dtype())
     else:
         with pytest.raises(ValueError):
             sycl_accessor_ref(f)
-- 
GitLab