File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def pytest_addoption(parser):
25
25
parser .addoption (
26
26
"--service-os" ,
27
27
action = "store" ,
28
- default = "no " ,
28
+ default = "windows " ,
29
29
help = "Geometry service OS running. Options: 'windows' or 'linux'. By default, 'windows'." ,
30
30
choices = ("windows" , "linux" ),
31
31
)
Original file line number Diff line number Diff line change @@ -778,9 +778,7 @@ def test_bodies_translation(modeler: Modeler):
778
778
)
779
779
780
780
781
- def test_download_file (
782
- modeler : Modeler , tmp_path_factory : pytest .TempPathFactory , skip_not_on_linux_service
783
- ):
781
+ def test_download_file (modeler : Modeler , tmp_path_factory : pytest .TempPathFactory , service_os : str ):
784
782
"""Test for downloading a design in multiple modes and verifying the correct
785
783
download."""
786
784
@@ -806,8 +804,15 @@ def test_download_file(
806
804
design .save (file_location = file_save )
807
805
808
806
# Check for other exports
809
- binary_parasolid_file = tmp_path_factory .mktemp ("scdoc_files_download" ) / "cylinder.x_b"
810
- text_parasolid_file = tmp_path_factory .mktemp ("scdoc_files_download" ) / "cylinder.x_t"
807
+ if service_os == "windows" :
808
+ binary_parasolid_file = tmp_path_factory .mktemp ("scdoc_files_download" ) / "cylinder.x_b"
809
+ text_parasolid_file = tmp_path_factory .mktemp ("scdoc_files_download" ) / "cylinder.x_t"
810
+ elif service_os == "linux" :
811
+ binary_parasolid_file = tmp_path_factory .mktemp ("scdoc_files_download" ) / "cylinder.xmt_bin"
812
+ text_parasolid_file = tmp_path_factory .mktemp ("scdoc_files_download" ) / "cylinder.xmt_txt"
813
+ else :
814
+ raise Exception ("Unable to determine the service operating system." )
815
+
811
816
fmd_file = tmp_path_factory .mktemp ("scdoc_files_download" ) / "cylinder.fmd"
812
817
813
818
design .download (binary_parasolid_file , format = DesignFileFormat .PARASOLID_BIN )
You can’t perform that action at this time.
0 commit comments