Skip to content

Commit d2b6b57

Browse files
committed
run_tests.py: remove old visual test
1 parent aff1a64 commit d2b6b57

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

run_tests.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
import sys
1212
import os
1313
import argparse
14-
import tmuxp.testsuite
15-
16-
t = tmuxp.testsuite.t
1714

1815
tmux_path = sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
1916
if tmux_path not in sys.path:
@@ -23,8 +20,6 @@
2320
def main(verbosity=2, failfast=False):
2421
"""Run TestSuite in new tmux session. Exit with code 0 if success."""
2522

26-
#session_name = 'tmuxp'
27-
#t.tmux('new-session', '-d', '-s', session_name)
2823
suites = unittest.TestLoader().discover('tmuxp.testsuite', pattern="*.py")
2924
result = unittest.TextTestRunner(
3025
verbosity=verbosity, failfast=failfast).run(suites)
@@ -43,20 +38,6 @@ def main(verbosity=2, failfast=False):
4338
''',
4439
formatter_class=argparse.RawTextHelpFormatter
4540
)
46-
parser.add_argument(
47-
'--visual',
48-
action='store_true',
49-
help='''\
50-
Run the session builder testsuite in visual mode. requires having
51-
tmux client in a second terminal open with:
52-
53-
Terminal 1:
54-
$ tmux -L tmuxp_test
55-
56-
Terminal 2:
57-
$ ./run_tests.py --visual
58-
'''
59-
)
6041
parser.add_argument(
6142
'--tests',
6243
nargs='*',
@@ -103,16 +84,6 @@ def main(verbosity=2, failfast=False):
10384

10485
if 'help' in args:
10586
parser.print_help()
106-
elif 'visual' in args and args.visual:
107-
loader = unittest.TestLoader()
108-
suites = loader.loadTestsFromName('tmuxp.testsuite.test_builder')
109-
result = unittest.TextTestRunner(
110-
verbosity=verbosity, failfast=args.failfast).run(suites)
111-
112-
if result.wasSuccessful():
113-
sys.exit(0)
114-
else:
115-
sys.exit(1)
11687
if args.tests and len(args.tests) > int(0):
11788
for arg in args.tests:
11889
if not arg.startswith('tmuxp.testsuite'):

0 commit comments

Comments
 (0)