lutris/tests/test_wine.py

21 lines
663 B
Python
Raw Normal View History

2017-05-04 05:26:26 +00:00
from unittest import TestCase
2017-05-04 05:26:26 +00:00
from lutris.runners import wine
2021-02-19 23:44:02 +00:00
from lutris.util.test_config import setup_test_environment
setup_test_environment()
2017-05-04 05:26:26 +00:00
class TestDllOverrides(TestCase):
def test_env_format(self):
overrides = {
2024-02-25 05:02:06 +00:00
"d3dcompiler_43": "native,builtin",
"d3dcompiler_47": "native,builtin",
"dnsapi": " builtin",
"dwrite": " disabled",
"winemenubuilder": "disabled",
"rasapi32": " native",
2017-05-04 05:26:26 +00:00
}
env_string = wine.get_overrides_env(overrides)
self.assertEqual(env_string, "d3dcompiler_43,d3dcompiler_47=n,b;dnsapi=b;rasapi32=n;dwrite,winemenubuilder=")