Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
klaus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
jonashaag
klaus
Commits
ad1f7983
Commit
ad1f7983
authored
7 years ago
by
Jonas Haag
Browse files
Options
Downloads
Patches
Plain Diff
Fixes
parent
9d9dbd90
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
klaus/ctagsutils.py
+2
-2
2 additions, 2 deletions
klaus/ctagsutils.py
tests/test_manpage.py
+3
-2
3 additions, 2 deletions
tests/test_manpage.py
with
5 additions
and
4 deletions
klaus/ctagsutils.py
+
2
−
2
View file @
ad1f7983
...
@@ -2,13 +2,13 @@ import os
...
@@ -2,13 +2,13 @@ import os
import
subprocess
import
subprocess
import
shutil
import
shutil
import
tempfile
import
tempfile
from
klaus.utils
import
check_output
import
subprocess
def
check_have_exuberant_ctags
():
def
check_have_exuberant_ctags
():
"""
Check that the
'
ctags
'
binary is *Exuberant* ctags (not etags etc)
"""
"""
Check that the
'
ctags
'
binary is *Exuberant* ctags (not etags etc)
"""
try
:
try
:
return
b
"
Exuberant
"
in
check_output
([
"
ctags
"
,
"
--version
"
],
stderr
=
subprocess
.
PIPE
)
return
b
"
Exuberant
"
in
subprocess
.
check_output
([
"
ctags
"
,
"
--version
"
],
stderr
=
subprocess
.
PIPE
)
except
subprocess
.
CalledProcessError
:
except
subprocess
.
CalledProcessError
:
return
False
return
False
...
...
This diff is collapsed.
Click to expand it.
tests/test_manpage.py
+
3
−
2
View file @
ad1f7983
import
sys
import
sys
import
re
import
re
import
subprocess
import
klaus_cli
import
klaus_cli
try
:
try
:
from
unittest
import
mock
from
unittest
import
mock
except
ImportError
:
except
ImportError
:
import
mock
import
mock
from
klaus.utils
import
check_output
,
force_unicode
from
klaus.utils
import
force_unicode
def
test_covers_all_cli_options
():
def
test_covers_all_cli_options
():
manpage
=
force_unicode
(
check_output
([
"
man
"
,
"
./klaus.1
"
]))
manpage
=
force_unicode
(
subprocess
.
check_output
([
"
man
"
,
"
./klaus.1
"
]))
def
assert_in_manpage
(
s
):
def
assert_in_manpage
(
s
):
clean
=
lambda
x
:
re
.
sub
(
'
(.
\\
x08)|\s
'
,
''
,
x
)
clean
=
lambda
x
:
re
.
sub
(
'
(.
\\
x08)|\s
'
,
''
,
x
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment