2017-05-04 05:26:26 +00:00
|
|
|
from unittest import TestCase
|
- 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-10-24 18:42:06 +00:00
|
|
|
|
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)
|
2021-10-16 18:42:36 +00:00
|
|
|
self.assertEqual(env_string, "d3dcompiler_43,d3dcompiler_47=n,b;dnsapi=b;rasapi32=n;dwrite,winemenubuilder=")
|