ScottishCovidResponse / SCRCIssueTracking

Central issue tracking repository for all repos in the consortium
6 stars 0 forks source link

`test_standard_api.py` tests fail on Windows 10 #716

Open bobturneruk opened 4 years ago

bobturneruk commented 4 years ago

e.g.

________________________________________________________________ ERROR at setup of test_description ________________________________________________________________ 

tmp_path = WindowsPath('C:/Users/Bob Turner/AppData/Local/Temp/pytest-of-Bob Turner/pytest-17/test_description0')

    @pytest.fixture
    def standard_api(tmp_path):
        for filename in ("config.yaml", "metadata.yaml", "object", "parameter"):
>           os.symlink(DATA_ROOT / filename, tmp_path / filename)
E           OSError: symbolic link privilege not held

tests\test_standard_api.py:17: OSError
bobturneruk commented 4 years ago

This is likely to do with path building / where Windows puts temp files / permissions on temp files.

github-actions[bot] commented 4 years ago

Heads up @mrow84 @bobturneruk - the "data pipeline api" label was applied to this issue.