Skip to content

Commit

Permalink
#1773: add remote logging test
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@23130 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 10, 2019
1 parent ab14719 commit aba1001
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions src/unittests/unit/server/mixins/logging_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env python
# This file is part of Xpra.
# Copyright (C) 2018 Antoine Martin <[email protected]>
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
# later version. See the file COPYING for details.

import unittest

from xpra.util import AdHocStruct
from unit.server.mixins.servermixintest_util import ServerMixinTest


class InputMixinTest(ServerMixinTest):

def test_fileprint(self):
from xpra.server.mixins.logging_server import LoggingServer
opts = AdHocStruct()
opts.remote_logging = "yes"
self._test_mixin_class(LoggingServer, opts)

def main():
unittest.main()


if __name__ == '__main__':
main()
2 changes: 1 addition & 1 deletion src/xpra/server/mixins/logging_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from xpra.server.mixins.stub_server_mixin import StubServerMixin
from xpra.log import Logger

log = Logger("client")
log = Logger("server")


"""
Expand Down

0 comments on commit aba1001

Please sign in to comment.