Skip to content

Commit 7acc16d

Browse files
committed
clean up workspace builder, unused code. Add examples_dir
1 parent 88e740c commit 7acc16d

File tree

1 file changed

+1
-43
lines changed

1 file changed

+1
-43
lines changed

tmuxp/testsuite/test_workspacebuilder.py

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@
1313
logger = logging.getLogger(__name__)
1414

1515
current_dir = os.path.abspath(os.path.dirname(__file__))
16-
example_dir = os.path.join('../../', current_dir)
16+
example_dir = os.path.abspath(os.path.join(current_dir, '..', '..'))
1717

18-
print(example_dir)
19-
logger.error(example_dir)
2018

2119
class TwoPaneTest(TmuxTestCase):
2220

@@ -275,45 +273,5 @@ def test_automatic_rename_option(self):
275273
self.assertNotEqual(w.get('window_name'), 'man')
276274

277275

278-
class TestsToDo(object):
279-
280-
def test_uses_first_window_if_exists(self):
281-
'''
282-
if the session is already on the first window, use that.
283-
284-
this is useful if the user is already inside of a tmux session
285-
'''
286-
287-
def test_same_session_already_exists_unclean(self):
288-
'''
289-
raise exception if session_name already exists and has multiple
290-
windows the user could potentially be offered to add a cli argument to
291-
override the session_name in config. Perhaps `-n` could be used to load
292-
a config from file with overridden session_name.
293-
'''
294-
295-
def test_inside_tmux_same_session_already_exists(self):
296-
''' same as above, but when the config file and the current $TMUX
297-
session are the same '''
298-
299-
def test_inside_tmux_no_session_name_exists(self):
300-
'''
301-
if the session_name doesn't currently exist and the user is in tmux
302-
rename the current session by the config / -n and build there.
303-
'''
304-
305-
def testPaneProportions(self):
306-
"""
307-
todo. checking the proportions of a pane on a grid allows
308-
us to verify a window has been build correctly without
309-
needing to see the tmux session itself.
310-
311-
we expect panes in a list to be ordered and show up to
312-
their corresponding pane_index.
313-
"""
314-
pass
315-
316-
317276
if __name__ == '__main__':
318-
# t.socket_name = 'tmuxp_test'
319277
unittest.main()

0 commit comments

Comments
 (0)