forked from LabGUI/LabGUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.py
52 lines (37 loc) · 1.25 KB
/
tests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 28 15:23:23 2017
@author: admin
"""
import os
def test_start_normal():
print("Normal start")
os.system("python LabGui.py")
def test_config_option_missing():
print("config_option_missing")
os.system("python LabGui.py -c")
def test_config_option_wrong_type():
print("config_option_wrong_type")
os.system("python LabGui.py -c 12")
def test_config_option_file_not_exists():
print("config_option_file_not_exists")
os.system("python LabGui.py -c Monsieur.txt")
def test_config_option_wrong_file():
print("config_option_wrong_file")
os.system("python LabGui.py -c requirements.txt")
def test_config_option_multiple_file():
print("config_option_multiple_file")
os.system("python LabGui.py -c requirements.txt config.txt")
def test_config_option_correct():
print("config_option_correct")
os.system("python LabGui.py -c config_mass_spec_alone.txt")
if __name__ == "__main__":
# test_start_normal()
# test_config_option_missing()
# test_config_option_wrong_type()
#
# test_config_option_file_not_exists()
#
# test_config_option_wrong_file()
# test_config_option_multiple_file()
test_config_option_correct()