File size: 313 Bytes
079c32c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)