equinor / fmu-sumo-uploader

Upload to Sumo in the FMU context
https://fmu-sumo-uploader.readthedocs.io/en/latest/
Apache License 2.0
0 stars 3 forks source link

Re-activate tests on windows #84

Open equinor-ruaj opened 2 months ago

equinor-ruaj commented 2 months ago

This PR disabled the github actions tests on Windows: https://github.com/equinor/fmu-sumo-uploader/pull/81/files

Reason: fmu-dataio fails to generate metadata for the file upload in test_uploader.py::test_case_with_one_child_and_params This is because the object that it wants to create metadata for is None. When the object is None, fmu-dataio uses a NamedTemporaryFile instead. This file is passed around as normal and tried opened multiple times. This does not work on windows (https://stackoverflow.com/questions/23212435/permission-denied-to-write-to-my-temporary-file)

Possible fix: Update the test to use a proper object so the NamedTemporaryFile is not used.