Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
monkeysphere
monkeysign
Commits
eba78658
Unverified
Commit
eba78658
authored
Jun 18, 2018
by
anarcat
Browse files
make tests work with pytest
parent
4fb856f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
monkeysign/tests/test_ui.py
View file @
eba78658
...
...
@@ -94,7 +94,7 @@ class CliBaseTest(unittest.TestCase):
'''
directory
,
basename
=
os
.
path
.
split
(
self
.
argv
[
0
])
path
,
directory
=
os
.
path
.
split
(
os
.
path
.
realpath
(
directory
))
if
directory
==
'scripts'
or
basename
==
'setup.py'
:
if
directory
==
'scripts'
or
basename
==
'setup.py'
or
'pytest'
in
basename
:
# default to run from source dir. this is necessary for
# ./scripts/monkeysign --test and ./setup.py test
execfile
(
os
.
path
.
dirname
(
__file__
)
+
'/../../scripts/monkeysign'
)
...
...
Write
Preview
Supports
Markdown
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