lutris/tests/test_wine.py
Alexander Ravenheart f5e8e007b3 - Replaced pipenv with poetry
- Updated min version check in setup.py to Python 3.6
- Updated isort config file and calls to align with v5.x
- Added init-hook for gi imports in .pylintrc to avoid invalid no-member issues
- Makefile: added lock, show-tree, bandit, black, mypy; updated test, cover, dev, isort, autopep8, check, isort-check, flake8, pylint; removed req, requirements;
- Updated .travis.yml to use poetry and make
- Added my email in AUTHORS
- Updated CONTRIBUTING.md
- Updated lint_python.yml to use poetry and make, reorganized instructions to have all install related steps first
- sorted imports: lutris, lutris-wrapper, cleanup_prefix.py and multiple files in tests dir
2021-11-17 21:17:43 -08:00

20 lines
663 B
Python

from unittest import TestCase
from lutris.runners import wine
from lutris.util.test_config import setup_test_environment
setup_test_environment()
class TestDllOverrides(TestCase):
def test_env_format(self):
overrides = {
'd3dcompiler_43': 'native,builtin',
'd3dcompiler_47': 'native,builtin',
'dnsapi': ' builtin',
'dwrite': ' disabled',
'winemenubuilder': 'disabled',
'rasapi32': ' native',
}
env_string = wine.get_overrides_env(overrides)
self.assertEqual(env_string, "d3dcompiler_43,d3dcompiler_47=n,b;dnsapi=b;rasapi32=n;dwrite,winemenubuilder=")