Skip to content

Commit efb1cc4

Browse files
committed
pep257 module comments for tests
1 parent a194fc8 commit efb1cc4

12 files changed

+124
-6
lines changed

tmuxp/testsuite/helpers.py

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
# -*- coding: utf-8 -*-
2+
"""Helper methods for tmuxp unittests.
3+
4+
tmuxp.tests.helpers
5+
~~~~~~~~~~~~~~~~~~~
6+
7+
:copyright: Copyright 2013 Tony Narlock.
8+
:license: BSD, see LICENSE for details
9+
10+
"""
211
from __future__ import absolute_import, division, print_function, with_statement
312

413
import time
@@ -76,10 +85,10 @@ def bootstrap(self):
7685
except exc.TmuxpException as e:
7786
raise e
7887

79-
'''
80-
Make sure that tmuxp can :ref:`test_builder_visually` and switches to the
81-
newly created session for that testcase.
82-
'''
88+
"""
89+
Make sure that tmuxp can :ref:`test_builder_visually` and switches to
90+
the newly created session for that testcase.
91+
"""
8392
try:
8493
t.switch_client(session.get('session_id'))
8594
pass
@@ -88,8 +97,10 @@ def bootstrap(self):
8897
pass
8998

9099
for old_test_session in old_test_sessions:
91-
logger.debug('Old test test session %s found. Killing it.' %
92-
old_test_session)
100+
logger.debug(
101+
'Old test test session %s found. Killing it.' %
102+
old_test_session
103+
)
93104
t.kill_session(old_test_session)
94105
assert TEST_SESSION_NAME == session.get('session_name')
95106
assert TEST_SESSION_NAME != 'tmuxp'

tmuxp/testsuite/test_cli.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
# -*- coding: utf-8 -*-
2+
"""Test for tmuxp command line interface.
3+
4+
tmuxp.tests.test_cli
5+
~~~~~~~~~~~~~~~~~~~~
6+
7+
:copyright: Copyright 2013 Tony Narlock.
8+
:license: BSD, see LICENSE for details
9+
10+
"""
211
from __future__ import absolute_import, division, print_function, with_statement
312

413
import os

tmuxp/testsuite/test_config.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
# -*- coding: utf-8 -*-
2+
"""Test for tmuxp configuration import, inlining, expanding and export.
3+
4+
tmuxp.tests.test_config
5+
~~~~~~~~~~~~~~~~~~~~~~~
6+
7+
:copyright: Copyright 2013 Tony Narlock.
8+
:license: BSD, see LICENSE for details
9+
10+
"""
11+
212
from __future__ import absolute_import, division, print_function, with_statement
313

414
import os

tmuxp/testsuite/test_config_teamocil.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
# -*- coding: utf-8 -*-
2+
"""Test for tmuxp teamocil configuration..
3+
4+
tmuxp.tests.test_config_teamocil
5+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6+
7+
:copyright: Copyright 2013 Tony Narlock.
8+
:license: BSD, see LICENSE for details
9+
10+
"""
11+
212
from __future__ import absolute_import, division, print_function, with_statement
313

414
import os

tmuxp/testsuite/test_config_tmuxinator.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
# -*- coding: utf-8 -*-
2+
"""Test for tmuxp tmuxinator configuration.
3+
4+
tmuxp.tests.test_config_tmuxinator
5+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6+
7+
:copyright: Copyright 2013 Tony Narlock.
8+
:license: BSD, see LICENSE for details
9+
10+
"""
11+
212
from __future__ import absolute_import, division, print_function, with_statement
313

414
import os

tmuxp/testsuite/test_pane.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
# -*- coding: utf-8 -*-
2+
"""Test for tmuxp Pane object.
3+
4+
tmuxp.tests.test_pane
5+
~~~~~~~~~~~~~~~~~~~~~
6+
7+
:copyright: Copyright 2013 Tony Narlock.
8+
:license: BSD, see LICENSE for details
9+
10+
"""
211
from __future__ import absolute_import, division, print_function, with_statement
312

413
from . import t

tmuxp/testsuite/test_server.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
# -*- coding: utf-8 -*-
2+
"""Test for tmuxp Server object.
3+
4+
tmuxp.tests.test_server
5+
~~~~~~~~~~~~~~~~~~~~~~~
6+
7+
:copyright: Copyright 2013 Tony Narlock.
8+
:license: BSD, see LICENSE for details
9+
10+
"""
11+
212
from __future__ import absolute_import, division, print_function, with_statement
313

414
from random import randint

tmuxp/testsuite/test_session.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
# -*- coding: utf-8 -*-
2+
"""Test for tmuxp Session object.
3+
4+
tmuxp.tests.test_session
5+
~~~~~~~~~~~~~~~~~~~~~~~~
6+
7+
:copyright: Copyright 2013 Tony Narlock.
8+
:license: BSD, see LICENSE for details
9+
10+
"""
11+
212
from __future__ import absolute_import, division, print_function, with_statement
313

414
from random import randint

tmuxp/testsuite/test_tmuxobject.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
# -*- coding: utf-8 -*-
2+
"""Test for tmuxp TmuxRelationalObject and TmuxMappingObject.
3+
4+
tmuxp.tests.test_tmuxobject
5+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
6+
7+
:copyright: Copyright 2013 Tony Narlock.
8+
:license: BSD, see LICENSE for details
9+
10+
"""
211
from __future__ import absolute_import, division, print_function, with_statement
312

413
import random

tmuxp/testsuite/test_window.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
# -*- coding: utf-8 -*-
2+
"""Test for tmuxp Window object.
3+
4+
tmuxp.tests.test_window
5+
~~~~~~~~~~~~~~~~~~~~~~~
6+
7+
:copyright: Copyright 2013 Tony Narlock.
8+
:license: BSD, see LICENSE for details
9+
10+
"""
11+
212
from __future__ import absolute_import, division, print_function, with_statement
313

414
from .. import Pane, Window, Server

tmuxp/testsuite/test_workspacebuilder.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
# -*- coding: utf-8 -*-
2+
"""Test for tmuxp workspacebuilder.
3+
4+
tmuxp.tests.test_workspacebuilder
5+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6+
7+
:copyright: Copyright 2013 Tony Narlock.
8+
:license: BSD, see LICENSE for details
9+
10+
"""
11+
212
from __future__ import absolute_import, division, print_function, with_statement
313

414
import os

tmuxp/testsuite/test_workspacefreezer.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
# -*- coding: utf-8 -*-
2+
"""Test for tmuxp workspacefreezer.
3+
4+
tmuxp.tests.test_workspacefreezer
5+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6+
7+
:copyright: Copyright 2013 Tony Narlock.
8+
:license: BSD, see LICENSE for details
9+
10+
"""
11+
212
from __future__ import absolute_import, division, print_function, with_statement
313

414
import os

0 commit comments

Comments
 (0)