1717from pyhelios .RadiationModel import RadiationSourceType
1818
1919
20+ @pytest .mark .native_only
2021class TestRadiationModel :
2122 """Test RadiationModel class functionality"""
2223
23- @pytest .mark .cross_platform
2424 def test_radiation_model_creation (self ):
2525 """Test RadiationModel creation and destruction"""
2626 with Context () as context :
@@ -37,7 +37,6 @@ def test_radiation_model_invalid_context(self):
3737 with pytest .raises (TypeError ):
3838 RadiationModel ("invalid_context" )
3939
40- @pytest .mark .cross_platform
4140 def test_message_control (self ):
4241 """Test message enable/disable functionality"""
4342 with Context () as context :
@@ -46,7 +45,6 @@ def test_message_control(self):
4645 radiation_model .disableMessages ()
4746 radiation_model .enableMessages ()
4847
49- @pytest .mark .cross_platform
5048 def test_radiation_bands (self ):
5149 """Test radiation band management"""
5250 with Context () as context :
@@ -60,7 +58,6 @@ def test_radiation_bands(self):
6058 # Copy radiation band
6159 radiation_model .copyRadiationBand ("SW" , "SW_copy" )
6260
63- @pytest .mark .cross_platform
6461 def test_radiation_sources (self ):
6562 """Test radiation source creation"""
6663 with Context () as context :
@@ -89,7 +86,6 @@ def test_radiation_sources(self):
8986 spherical_dir , 1.0 , 0.00935 , 1.0 )
9087 assert isinstance (source5 , int )
9188
92- @pytest .mark .cross_platform
9389 def test_radiation_source_invalid_direction (self ):
9490 """Test radiation source creation with invalid direction type"""
9591 with Context () as context :
@@ -110,7 +106,6 @@ def test_ray_count_configuration(self):
110106 # Set diffuse ray count
111107 radiation_model .setDiffuseRayCount ("SW" , 300 )
112108
113- @pytest .mark .cross_platform
114109 def test_flux_configuration (self ):
115110 """Test flux configuration"""
116111 with Context () as context :
@@ -132,7 +127,6 @@ def test_flux_configuration(self):
132127 flux = radiation_model .getSourceFlux (source , "SW" )
133128 assert isinstance (flux , float )
134129
135- @pytest .mark .cross_platform
136130 def test_flux_configuration_invalid_types (self ):
137131 """Test flux configuration with invalid types"""
138132 with Context () as context :
@@ -142,7 +136,6 @@ def test_flux_configuration_invalid_types(self):
142136 with pytest .raises (TypeError ):
143137 radiation_model .setSourceFlux ("invalid_source" , "SW" , 800.0 )
144138
145- @pytest .mark .cross_platform
146139 def test_scattering_configuration (self ):
147140 """Test scattering configuration"""
148141 with Context () as context :
@@ -155,7 +148,6 @@ def test_scattering_configuration(self):
155148 # Set minimum scatter energy
156149 radiation_model .setMinScatterEnergy ("SW" , 0.01 )
157150
158- @pytest .mark .cross_platform
159151 def test_emission_control (self ):
160152 """Test emission control"""
161153 with Context () as context :
@@ -168,7 +160,6 @@ def test_emission_control(self):
168160 # Enable emission
169161 radiation_model .enableEmission ("SW" )
170162
171- @pytest .mark .cross_platform
172163 def test_geometry_update (self ):
173164 """Test geometry update"""
174165 with Context () as context :
@@ -182,7 +173,6 @@ def test_geometry_update(self):
182173 # Update specific geometry
183174 radiation_model .updateGeometry ([patch ])
184175
185- @pytest .mark .cross_platform
186176 def test_run_simulation_basic (self ):
187177 """Test basic simulation execution (should not crash in mock mode)"""
188178 with Context () as context :
@@ -204,15 +194,13 @@ def test_run_simulation_basic(self):
204194 radiation_model .addRadiationBand ("LW" )
205195 radiation_model .runBand (["SW" , "LW" ])
206196
207- @pytest .mark .cross_platform
208197 def test_run_simulation_invalid_types (self ):
209198 """Test simulation with invalid label types"""
210199 with Context () as context :
211200 with RadiationModel (context ) as radiation_model :
212201 with pytest .raises (TypeError ):
213202 radiation_model .runBand (123 ) # Invalid type
214203
215- @pytest .mark .cross_platform
216204 def test_result_access (self ):
217205 """Test accessing simulation results"""
218206 with Context () as context :
@@ -234,10 +222,10 @@ def test_result_access(self):
234222 assert band_count >= 0
235223
236224
225+ @pytest .mark .native_only
237226class TestContextPseudocolor :
238227 """Test Context pseudocolor functionality"""
239228
240- @pytest .mark .cross_platform
241229 def test_pseudocolor_basic (self ):
242230 """Test basic pseudocolor functionality"""
243231 with Context () as context :
@@ -256,7 +244,6 @@ def test_pseudocolor_basic(self):
256244 # Expected in mock mode when pseudocolor functions are not available
257245 pass
258246
259- @pytest .mark .cross_platform
260247 def test_pseudocolor_with_range (self ):
261248 """Test pseudocolor with specified range"""
262249 with Context () as context :
@@ -275,7 +262,6 @@ def test_pseudocolor_with_range(self):
275262 # Expected in mock mode when pseudocolor functions are not available
276263 pass
277264
278- @pytest .mark .cross_platform
279265 def test_pseudocolor_different_colormaps (self ):
280266 """Test different colormap options"""
281267 with Context () as context :
0 commit comments