Page MenuHomeSoftware Heritage

__init__.py
No OneTemporary

__init__.py

"""
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

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

Event Timeline