Skip to content

Commit 8c40175

Browse files
committed
update tmuxinator tests
1 parent e270211 commit 8c40175

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

tmuxp/testsuite/test_config_tmuxinator.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,22 @@ class TmuxinatorDeprecationsTest(unittest.TestCase):
9999
- logs: tail -f log/development.log
100100
- console: bundle exec rails c
101101
- capistrano:
102-
'''
103102
- server: ssh user@example.com
104103
"""
105104

105+
tmuxinator_dict = {
106+
'project_name': 'sample',
107+
'project_root': '~/test',
108+
'socket_name': 'foo'
109+
}
110+
111+
def test_config_to_dict(self):
112+
self.maxDiff = None
113+
configparser = kaptan.Kaptan(handler='yaml')
114+
test_config = configparser.import_config(self.tmuxinator_yaml)
115+
yaml_to_dict = test_config.get()
116+
self.assertDictEqual(yaml_to_dict, self.tmuxinator_dict)
117+
106118

107119
class TmuxinatoriSampleTest(unittest.TestCase):
108120

@@ -148,9 +160,9 @@ class TmuxinatoriSampleTest(unittest.TestCase):
148160
- logs: tail -f log/development.log
149161
- console: bundle exec rails c
150162
- capistrano:
151-
152163
- server: ssh user@example.com
153164
"""
165+
pass
154166

155167
if __name__ == '__main__':
156168
unittest.main()

0 commit comments

Comments
 (0)