gomoku / DI-engine /ding /utils /tests /test_system_helper.py
zjowowen's picture
init space
079c32c
raw
history blame
313 Bytes
import pytest
from ding.utils.system_helper import get_ip, get_pid, get_task_uid
@pytest.mark.unittest
class TestSystemHelper():
def test_get(self):
try:
get_ip()
except:
pass
assert isinstance(get_pid(), int)
assert isinstance(get_task_uid(), str)