Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
senpy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
senpy
senpy
Commits
738da490
Commit
738da490
authored
Jan 18, 2018
by
J. Fernando Sánchez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test to command line
parent
d29c42fd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
senpy/__main__.py
senpy/__main__.py
+11
-1
No files found.
senpy/__main__.py
View file @
738da490
...
...
@@ -22,6 +22,7 @@ the server.
from
flask
import
Flask
from
senpy.extensions
import
Senpy
from
senpy.utils
import
easy_test
import
logging
import
os
...
...
@@ -39,7 +40,7 @@ def main():
'-l'
,
metavar
=
'logging_level'
,
type
=
str
,
default
=
"
ERROR
"
,
default
=
"
WARN
"
,
help
=
'Logging level'
)
parser
.
add_argument
(
'--debug'
,
...
...
@@ -75,6 +76,12 @@ def main():
action
=
'store_true'
,
default
=
False
,
help
=
'Do not run a server, only install plugin dependencies'
)
parser
.
add_argument
(
'--only-test'
,
'-t'
,
action
=
'store_true'
,
default
=
False
,
help
=
'Do not run a server, just test all plugins'
)
parser
.
add_argument
(
'--only-list'
,
'--list'
,
...
...
@@ -122,6 +129,9 @@ def main():
if
args
.
only_install
:
return
sp
.
activate_all
()
if
args
.
only_test
:
easy_test
(
sp
.
plugins
())
return
print
(
'Senpy version {}'
.
format
(
senpy
.
__version__
))
print
(
'Server running on port %s:%d. Ctrl+C to quit'
%
(
args
.
host
,
args
.
port
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment