-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnixFD: Move the unit tests to a new file #97
UnixFD: Move the unit tests to a new file #97
Conversation
* Remove extra lines. * Improve the indentation.
Split the testing DBus interface and create a new one for UnixFD.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
tests/test_dbus.py
Outdated
proxy_args={"client": GLibClientUnix}) | ||
super().setUp() | ||
self.server_args = {"server": GLibServerUnix} | ||
self.client_args = {"client": GLibClientUnix} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it on purpose that here the variable is named client_args
(renamed from proxy_args
) but parent have it still as proxy_args
? If yes, could you please explain this split in the commit message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was a bug. Good catch!
The attributes can be set later.
The bus should be set up and teared down in the `setUp` and `tearDown` methods of the `TestCase` class. Otherwise, the resources might not be cleaned up.
Create a new file for the UnixFD tests.
966f001
to
e860423
Compare
Clean up tests for the Unix file descriptors and move them to a new file.