Closed dougransom closed 1 year ago
I cannot fully understand this one, but if it works, and is more secure, I will merge it in.
We are planning to change "natlink_userdir" into "natlink_settingsdir" in the next release. This means, that some tests should be changed accordingly.
natConnect now returns a context manager rather than Nothing. No behavioral changes unless called using the with syntax: now you don't have to worry about disconnecting and whether exceptions happen.
`@pytest.fixture(scope="module") def natlink_connection(monkeymodule): mock_folder=p.WindowsPath(os.path.dirname(file)) / "mock_userdir" monkeymodule.setenv("natlink_userdir",str(mock_folder))
`
Implemented with a veneer in init.py.