-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
66 lines (47 loc) · 1.51 KB
/
main.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import os
import click
@click.command()
# @click.option('--all', help='Run all .feature files.')
def all():
os.system("behave features\logo_presence.feature")
os.system("behave features\sign_up.feature")
os.system("behave features\sign_in.feature")
os.system("behave features\contact_us.feature")
os.system("behave features\dresses.feature")
os.system("behave features\\tops.feature")
@click.command()
# @click.option('--logo', help='Run logo-presence.feature file.')
def logo():
os.system("behave features\logo_presence.feature")
@click.command()
# @click.option('--sign_up', help='Run sign_up.feature file.')
def sign_up():
os.system("behave features\sign_up.feature")
@click.command()
# @click.option('--sign_in', help='Run sign_in.feature file.')
def sign_in():
os.system("behave features\sign_in.feature")
@click.command()
# @click.option('--contact_us', help='Run contact_us.feature file.')
def contact_us():
os.system("behave features\contact_us.feature")
@click.command()
# @click.option('--dresses', help='Run dresses.feature file.')
def dresses():
os.system("behave features\dresses.feature")
@click.command()
# @click.option('--tops', help='Run tops.feature file.')
def tops():
os.system("behave features\\tops.feature")
@click.group()
def main():
pass
main.add_command(all)
main.add_command(logo)
main.add_command(sign_up)
main.add_command(sign_in)
main.add_command(contact_us)
main.add_command(dresses)
main.add_command(tops)
if __name__ == "__main__":
main()