Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8395537
__init__.py
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
697 B
Subscribers
None
__init__.py
View Options
"""
Package of tests for mirakuru.
Tests are written using py.test framework which dictates patterns that should
be followed in test cases.
"""
import
sys
from
os
import
path
from
subprocess
import
check_output
TEST_PATH
=
path
.
abspath
(
path
.
dirname
(
__file__
))
TEST_SERVER_PATH
=
path
.
join
(
TEST_PATH
,
"server_for_tests.py"
)
TEST_SOCKET_SERVER_PATH
=
path
.
join
(
TEST_PATH
,
'unixsocketserver_for_tests.py'
)
SAMPLE_DAEMON_PATH
=
path
.
join
(
TEST_PATH
,
"sample_daemon.py"
)
HTTP_SERVER_CMD
=
(
"{python} -m http.server"
)
.
format
(
python
=
sys
.
executable
)
def
ps_aux
():
"""
Return output of systems `ps aux -w` call.
:rtype str
"""
return
str
(
check_output
((
'ps'
,
'aux'
,
'-w'
)))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jun 4 2025, 7:40 PM (10 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3382015
Attached To
rPMK python3-mirakuru
Event Timeline
Log In to Comment